diff options
-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()); - } } /** |