From 009c01fd7eeb2f9f6acf6f1cd453844fc8421be1 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 25 Sep 2017 09:32:44 -0700 Subject: [PATCH] Move experience upgrade after passphrase and registration // FREEBIE --- .../securesms/PassphraseRequiredActionBarActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/PassphraseRequiredActionBarActivity.java b/src/org/thoughtcrime/securesms/PassphraseRequiredActionBarActivity.java index 134dc6dfb8..cfa9321735 100644 --- a/src/org/thoughtcrime/securesms/PassphraseRequiredActionBarActivity.java +++ b/src/org/thoughtcrime/securesms/PassphraseRequiredActionBarActivity.java @@ -151,14 +151,14 @@ public abstract class PassphraseRequiredActionBarActivity extends BaseActionBarA private int getApplicationState(MasterSecret masterSecret) { if (!MasterSecretUtil.isPassphraseInitialized(this)) { return STATE_CREATE_PASSPHRASE; - } else if (ExperienceUpgradeActivity.isUpdate(this)) { - return STATE_EXPERIENCE_UPGRADE; } else if (masterSecret == null) { return STATE_PROMPT_PASSPHRASE; } else if (DatabaseUpgradeActivity.isUpdate(this)) { return STATE_UPGRADE_DATABASE; } else if (!TextSecurePreferences.hasPromptedPushRegistration(this)) { return STATE_PROMPT_PUSH_REGISTRATION; + } else if (ExperienceUpgradeActivity.isUpdate(this)) { + return STATE_EXPERIENCE_UPGRADE; } else { return STATE_NORMAL; }