mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 22:55:46 +03:00
Better conditionals
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
8f443b5ed5
commit
f477893cce
1 changed files with 5 additions and 2 deletions
|
@ -335,9 +335,12 @@ public class Preferences extends PreferenceActivity
|
||||||
if (mExpertMode.isChecked()) {
|
if (mExpertMode.isChecked()) {
|
||||||
Log_OC.startLogging(getApplicationContext());
|
Log_OC.startLogging(getApplicationContext());
|
||||||
} else {
|
} else {
|
||||||
Log_OC.stopLogging();
|
if (!BuildConfig.DEBUG &&
|
||||||
|
!getApplicationContext().getResources().getBoolean(R.bool.logger_enabled)) {
|
||||||
|
Log_OC.stopLogging();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue