In the intro, wait for the derivation to be complete before continuing

This commit is contained in:
Alexander Bakker 2017-11-27 19:23:21 +01:00
parent 0afc1b3a97
commit ca68f0525d

View file

@ -109,6 +109,10 @@ public class IntroActivity extends AppIntro implements DerivationTask.Callback {
@Override @Override
public void onDonePressed(Fragment currentFragment) { public void onDonePressed(Fragment currentFragment) {
super.onDonePressed(currentFragment); super.onDonePressed(currentFragment);
// wait for the key derivation background task
if (_passwordSlot == null || _passwordCipher == null) {
return;
}
int cryptType = _authenticatedSlide.getCryptType(); int cryptType = _authenticatedSlide.getCryptType();