Better conditionals

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-10-12 15:52:47 +02:00 committed by AndyScherzinger
parent 8f443b5ed5
commit f477893cce
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -335,9 +335,12 @@ public class Preferences extends PreferenceActivity
if (mExpertMode.isChecked()) {
Log_OC.startLogging(getApplicationContext());
} else {
Log_OC.stopLogging();
if (!BuildConfig.DEBUG &&
!getApplicationContext().getResources().getBoolean(R.bool.logger_enabled)) {
Log_OC.stopLogging();
}
}
return true;
}
});