Fix a bug where the intro could never finish for plain text databases

This commit is contained in:
Alexander Bakker 2017-12-10 19:22:00 +01:00
parent 95638b359b
commit 467a877a6d

View file

@ -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;