Fixed a bug where AuthActivity was started with an unlocked database

This commit is contained in:
Alexander Bakker 2017-12-26 14:18:00 +01:00
parent 5aad0d62f9
commit 3e1c3ef3f1

View file

@ -378,9 +378,13 @@ public class MainActivity extends AegisActivity implements KeyProfileView.Listen
} }
private boolean doShortcutActions() { private boolean doShortcutActions() {
// return false if an action was blocked by a locked database
// otherwise, always return true
Intent intent = getIntent(); Intent intent = getIntent();
String action = intent.getStringExtra("action"); String action = intent.getStringExtra("action");
if (action == null || _db.isLocked()) { if (action == null) {
return true;
} else if (_db.isLocked()) {
return false; return false;
} }