diff options
author | Lucky Zhang <luckyzh@google.com> | 2015-04-20 21:05:22 -0700 |
---|---|---|
committer | Lucky Zhang <luckyzh@google.com> | 2015-04-21 15:09:40 -0700 |
commit | a62d2c800caf3c1562ef93f207353bd86e8ddcd8 (patch) | |
tree | 2d1e6cb11bf3f283ccee26b422daf78c14b3db24 /src/com/android/settings/SetupWizardUtils.java | |
parent | e5112fe7665eca3dc47b5bb8bd2f22de77a44c44 (diff) | |
download | packages_apps_Settings-a62d2c800caf3c1562ef93f207353bd86e8ddcd8.zip packages_apps_Settings-a62d2c800caf3c1562ef93f207353bd86e8ddcd8.tar.gz packages_apps_Settings-a62d2c800caf3c1562ef93f207353bd86e8ddcd8.tar.bz2 |
[SetupWizard] Refactor WifiSetupActivity
Refactor WifiSetupActivity to respect the conventional logic of Setup
Wizard's SubactivityWrapper. WifiSetupActivity now returns the result
code back to WifiSettingsWrapper and lets the Wrapper invoke
WizardManager, instead of invoking WizardManager by itself and letting
its Wrapper finish early.
The related change in WifiSettingsWrapper on Setup Wizard side is
ag/676788.
Bug: 20309008
Change-Id: Ia3bc2ff390404ff87c427782b5e7b345050bea03
Diffstat (limited to 'src/com/android/settings/SetupWizardUtils.java')
-rw-r--r-- | src/com/android/settings/SetupWizardUtils.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/com/android/settings/SetupWizardUtils.java b/src/com/android/settings/SetupWizardUtils.java index d91ba13..0f93c67 100644 --- a/src/com/android/settings/SetupWizardUtils.java +++ b/src/com/android/settings/SetupWizardUtils.java @@ -33,24 +33,11 @@ public class SetupWizardUtils { // From WizardManager (must match constants maintained there) public static final String EXTRA_SCRIPT_URI = "scriptUri"; - public static final int NEXT_REQUEST = 10000; public static boolean isUsingWizardManager(Activity activity) { return activity.getIntent().hasExtra(EXTRA_SCRIPT_URI); } - /** - * Send the results of this activity to WizardManager, which will then send out the next - * scripted activity. WizardManager does not actually return an activity result, but if we - * invoke WizardManager without requesting a result, the framework will choose not to issue a - * call to onActivityResult with RESULT_CANCELED when navigating backward. - */ - public static void sendResultsToSetupWizard(Activity activity, int resultCode) { - final Intent intent = activity.getIntent(); - final Intent nextIntent = WizardManagerHelper.getNextIntent(intent, resultCode); - activity.startActivityForResult(nextIntent, NEXT_REQUEST); - } - public static int getTheme(Intent intent) { if (WizardManagerHelper.isLightTheme(intent, true)) { return R.style.SetupWizardTheme_Light; |