diff --git a/src/org/thoughtcrime/securesms/PassphraseCreateActivity.java b/src/org/thoughtcrime/securesms/PassphraseCreateActivity.java index 14dd2428ac..b0f5e5fb67 100644 --- a/src/org/thoughtcrime/securesms/PassphraseCreateActivity.java +++ b/src/org/thoughtcrime/securesms/PassphraseCreateActivity.java @@ -16,9 +16,7 @@ */ package org.thoughtcrime.securesms; -import android.graphics.drawable.Drawable; import android.os.AsyncTask; -import android.os.Build; import android.os.Bundle; import android.support.v7.app.ActionBar; @@ -52,7 +50,6 @@ public class PassphraseCreateActivity extends PassphraseActivity { getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); getSupportActionBar().setCustomView(R.layout.light_centered_app_title); - TextSecurePreferences.setPasswordDisabled(this, true); new SecretGenerator().execute(MasterSecretUtil.UNENCRYPTED_PASSPHRASE); } @@ -74,6 +71,7 @@ public class PassphraseCreateActivity extends PassphraseActivity { MasterSecretUtil.generateAsymmetricMasterSecret(PassphraseCreateActivity.this, masterSecret); IdentityKeyUtil.generateIdentityKeys(PassphraseCreateActivity.this, masterSecret); VersionTracker.updateLastSeenVersion(PassphraseCreateActivity.this); + TextSecurePreferences.setPasswordDisabled(PassphraseCreateActivity.this, true); return null; }