Merge pull request #441 from alexbakker/fix-lock-crash

Fix crash that would occur when locking the screen with a locked vault
This commit is contained in:
Michael Schättgen 2020-05-30 13:06:25 +02:00 committed by GitHub
commit ef1ac3e5e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ public class AegisApplication extends Application {
}
public boolean isAutoLockEnabled() {
return _prefs.isAutoLockEnabled() && _manager.isEncryptionEnabled() && !isVaultLocked();
return _prefs.isAutoLockEnabled() && !isVaultLocked() && _manager.isEncryptionEnabled() ;
}
public void registerLockListener(LockListener listener) {