From 467a877a6d9264b6a7cfd98a1efed662185c7051 Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Sun, 10 Dec 2017 19:22:00 +0100 Subject: [PATCH] Fix a bug where the intro could never finish for plain text databases --- app/src/main/java/me/impy/aegis/IntroActivity.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/me/impy/aegis/IntroActivity.java b/app/src/main/java/me/impy/aegis/IntroActivity.java index 4c37b87d..4aeec19b 100644 --- a/app/src/main/java/me/impy/aegis/IntroActivity.java +++ b/app/src/main/java/me/impy/aegis/IntroActivity.java @@ -109,13 +109,14 @@ public class IntroActivity extends AppIntro implements DerivationTask.Callback { @Override public void onDonePressed(Fragment currentFragment) { super.onDonePressed(currentFragment); + + int cryptType = _authenticatedSlide.getCryptType(); // wait for the key derivation background task - if (_passwordSlot == null || _passwordCipher == null) { + if (cryptType == CustomAuthenticationSlide.CRYPT_TYPE_NONE || + _passwordSlot == null || _passwordCipher == null) { return; } - int cryptType = _authenticatedSlide.getCryptType(); - // generate the master key MasterKey masterKey = null; if (cryptType != CustomAuthenticationSlide.CRYPT_TYPE_NONE) {