Merge pull request #140 from alexbakker/debug-flag-secure

Disable screen security by default for debug builds
This commit is contained in:
Michael Schättgen 2019-06-25 00:15:15 +02:00 committed by GitHub
commit 550e53f225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -16,7 +16,8 @@ public class Preferences {
}
public boolean isSecureScreenEnabled() {
return _prefs.getBoolean("pref_secure_screen", true);
// screen security should be enabled by default, but not for debug builds
return _prefs.getBoolean("pref_secure_screen", !BuildConfig.DEBUG);
}
public boolean isAccountNameVisible() {