diff options
author | cretin45 <cretin45@gmail.com> | 2015-02-17 17:09:32 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2015-02-17 17:09:32 -0800 |
commit | 79840ecb4e4bfd5093746be41498cfcdc9254509 (patch) | |
tree | f147777afb4781127922e32c29326f8c952258fa /src/com/cyanogenmod/setupwizard/setup | |
parent | 77c129f8b940532298d9c3cb8ae72d051ad3ed74 (diff) | |
download | packages_apps_SetupWizard-79840ecb4e4bfd5093746be41498cfcdc9254509.zip packages_apps_SetupWizard-79840ecb4e4bfd5093746be41498cfcdc9254509.tar.gz packages_apps_SetupWizard-79840ecb4e4bfd5093746be41498cfcdc9254509.tar.bz2 |
SetupWizard: Fix scenario where GMS setup disables its components
Change-Id: Ia8edd39645f83625ff06fb61903b672b774257d6
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/GmsAccountPage.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/GmsAccountPage.java b/src/com/cyanogenmod/setupwizard/setup/GmsAccountPage.java index 2c4203f..11f9e7c 100644 --- a/src/com/cyanogenmod/setupwizard/setup/GmsAccountPage.java +++ b/src/com/cyanogenmod/setupwizard/setup/GmsAccountPage.java @@ -125,6 +125,7 @@ public class GmsAccountPage extends SetupPage { } } else if (requestCode == SetupWizardApp.REQUEST_CODE_RESTORE_GMS) { handleResult(resultCode); + setHidden(true); } return true; } @@ -150,6 +151,8 @@ public class GmsAccountPage extends SetupPage { private static void launchGmsRestorePage(final Activity activity) { try { + // GMS can disable this after logging in sometimes + SetupWizardUtils.enableGMSSetupWizard(activity); Intent intent = new Intent(ACTION_RESTORE); intent.putExtra(SetupWizardApp.EXTRA_ALLOW_SKIP, true); intent.putExtra(SetupWizardApp.EXTRA_USE_IMMERSIVE, true); @@ -169,7 +172,7 @@ public class GmsAccountPage extends SetupPage { e.printStackTrace(); // XXX: In open source, we don't know what gms version a user has. // Bail if the restore activity is not found. - ((SetupWizardActivity)activity).onNextPage(); + ((SetupWizardActivity) activity).onNextPage(); } } |