Restore look of Wi-Fi panel for Setup Wizard
As part of the Wi-Fi refresh, this CL hides the action bar, menu, and Settings icon in the context of the Setup Wizard. Dead code related to WifiSettingsForSetupWizardXL has also been removed. Bug: 5364589 Change-Id: Ib6716500153879b939a18a7007f1f6521b73890b
This commit is contained in:
@@ -29,6 +29,8 @@ public class WifiPickerActivity extends PreferenceActivity implements ButtonBarH
|
||||
private static final String EXTRA_PREFS_SHOW_BUTTON_BAR = "extra_prefs_show_button_bar";
|
||||
private static final String EXTRA_PREFS_SET_NEXT_TEXT = "extra_prefs_set_next_text";
|
||||
private static final String EXTRA_PREFS_SET_BACK_TEXT = "extra_prefs_set_back_text";
|
||||
private static final String EXTRA_WIFI_SHOW_ACTION_BAR = "wifi_show_action_bar";
|
||||
private static final String EXTRA_WIFI_SHOW_MENUS = "wifi_show_menus";
|
||||
|
||||
@Override
|
||||
public Intent getIntent() {
|
||||
@@ -67,6 +69,14 @@ public class WifiPickerActivity extends PreferenceActivity implements ButtonBarH
|
||||
intent.putExtra(EXTRA_PREFS_SET_BACK_TEXT,
|
||||
orgIntent.getStringExtra(EXTRA_PREFS_SET_BACK_TEXT));
|
||||
}
|
||||
if (orgIntent.hasExtra(EXTRA_WIFI_SHOW_ACTION_BAR)) {
|
||||
intent.putExtra(EXTRA_WIFI_SHOW_ACTION_BAR,
|
||||
orgIntent.getBooleanExtra(EXTRA_WIFI_SHOW_ACTION_BAR, true));
|
||||
}
|
||||
if (orgIntent.hasExtra(EXTRA_WIFI_SHOW_MENUS)) {
|
||||
intent.putExtra(EXTRA_WIFI_SHOW_MENUS,
|
||||
orgIntent.getBooleanExtra(EXTRA_WIFI_SHOW_MENUS, true));
|
||||
}
|
||||
|
||||
if (resultTo == null) {
|
||||
startActivity(intent);
|
||||
|
Reference in New Issue
Block a user