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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 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,12 +109,13 @@ public class IntroActivity extends AppIntro implements DerivationTask.Callback { @Override public void onDonePressed(Fragment currentFragment) { super.onDonePressed(currentFragment); - // wait for the key derivation background task - if (_passwordSlot == null || _passwordCipher == null) { - return; - } int cryptType = _authenticatedSlide.getCryptType(); + // wait for the key derivation background task + if (cryptType == CustomAuthenticationSlide.CRYPT_TYPE_NONE || + _passwordSlot == null || _passwordCipher == null) { + return; + } // generate the master key MasterKey masterKey = null;