diff options
author | Norbel AMBANUMBEN <aanorbel@gmail.com> | 2024-10-11 21:55:07 +0100 |
---|---|---|
committer | Norbel AMBANUMBEN <aanorbel@gmail.com> | 2024-10-11 21:55:07 +0100 |
commit | a0d90ddbe67c87aaa47805644b39e50966ac78fb (patch) | |
tree | 12990d1f60de66aa19ec58703e83db6afdc5890c /app | |
parent | 2d785c98c0af74a3e26ecb4bad2451012299dc4b (diff) |
feat(invite-code): update state to switch provider when provider previously configured
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java index 75d2f29e..87123976 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/activities/SetupActivity.java @@ -99,6 +99,13 @@ public class SetupActivity extends AppCompatActivity implements SetupActivityCal addIndicatorView(indicatorViews); } + if (getIntent() != null) { + if (ProviderObservable.getInstance().getCurrentProvider().isConfigured()){ + switchProvider = true; + } + manageIntent(getIntent()); + } + // indicator views for config setup boolean basicProviderSetup = !ProviderObservable.getInstance().getCurrentProvider().isConfigured() || switchProvider; if (basicProviderSetup) { @@ -172,9 +179,6 @@ public class SetupActivity extends AppCompatActivity implements SetupActivityCal } } binding.viewPager.setCurrentItem(currentPosition, false); - if (getIntent() != null) { - manageIntent(getIntent()); - } } /** |