diff --git a/res/values/setup.xml b/res/values/setup.xml
index 76f0d46688..0212700756 100644
--- a/res/values/setup.xml
+++ b/res/values/setup.xml
@@ -53,7 +53,7 @@
false
true
true
- true
+ false
http://owncloud.com/mobile/help
"mailto:"
diff --git a/src/com/owncloud/android/ui/activity/Preferences.java b/src/com/owncloud/android/ui/activity/Preferences.java
index 350595d446..8571a55715 100644
--- a/src/com/owncloud/android/ui/activity/Preferences.java
+++ b/src/com/owncloud/android/ui/activity/Preferences.java
@@ -270,7 +270,8 @@ public class Preferences extends PreferenceActivity
}
- if (BuildConfig.DEBUG) {
+ boolean loggerEnabled = getResources().getBoolean(R.bool.logger_enabled) || BuildConfig.DEBUG;
+ if (loggerEnabled) {
Preference pLog = findPreference("log");
if (pLog != null ){
pLog.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@@ -347,7 +348,6 @@ public class Preferences extends PreferenceActivity
}
}
- boolean loggerEnabled = getResources().getBoolean(R.bool.logger_enabled);
Preference pLogger = findPreference("logger");
if (pLogger != null){
if (loggerEnabled) {