diff options
author | Russell Brenner <russellbrenner@google.com> | 2012-06-12 13:53:31 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-06-12 13:53:31 -0700 |
commit | 3f9ec9f1c2744664ae637b9fbce99c115c60a429 (patch) | |
tree | 5810c0f9f717f5eb21dcac1fb54440d9a88b83d0 /src | |
parent | b5858bbdc363e21bf87ac5643822ec9e57956c52 (diff) | |
parent | 58d6ffc5f56a94afade76ac8dc434c6e3d43fd6d (diff) | |
download | packages_apps_settings-3f9ec9f1c2744664ae637b9fbce99c115c60a429.zip packages_apps_settings-3f9ec9f1c2744664ae637b9fbce99c115c60a429.tar.gz packages_apps_settings-3f9ec9f1c2744664ae637b9fbce99c115c60a429.tar.bz2 |
Merge "Disable notification alerts in Settings for SUW" into jb-dev
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/wifi/WifiSettings.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java index 28b0f36..de42f2a 100644 --- a/src/com/android/settings/wifi/WifiSettings.java +++ b/src/com/android/settings/wifi/WifiSettings.java @@ -147,8 +147,6 @@ public class WifiSettings extends SettingsPreferenceFragment // this boolean extra is set if we are being invoked by the Setup Wizard private static final String EXTRA_IS_FIRST_RUN = "firstRun"; - private static final String EXTRA_WIFI_DISABLE_BACK = "wifi_disable_back"; - // should Next button only be enabled when we have a connection? private boolean mEnableNextOnConnection; @@ -322,9 +320,13 @@ public class WifiSettings extends SettingsPreferenceFragment addPreferencesFromResource(R.xml.wifi_settings); - // Back key is disabled if requested - if (intent.getBooleanExtra(EXTRA_WIFI_DISABLE_BACK, false)) { - getView().setSystemUiVisibility(View.STATUS_BAR_DISABLE_BACK); + if (mSetupWizardMode) { + getView().setSystemUiVisibility( + View.STATUS_BAR_DISABLE_BACK | + View.STATUS_BAR_DISABLE_HOME | + View.STATUS_BAR_DISABLE_RECENT | + View.STATUS_BAR_DISABLE_NOTIFICATION_ALERTS | + View.STATUS_BAR_DISABLE_CLOCK); } // On/off switch is hidden for Setup Wizard |