summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DateTimeSettingsSetupWizard.java
diff options
context:
space:
mode:
authorFreeman Ng <tenorslowworm@google.com>2011-06-09 15:42:25 -0700
committerFreeman Ng <tenorslowworm@google.com>2011-06-09 16:00:34 -0700
commit03708e030a9c85e323ba2464e908e4c9c3fc3095 (patch)
treeb38bb2bbcfd94d07714d9c2b5f0035b7383c34e9 /src/com/android/settings/DateTimeSettingsSetupWizard.java
parent7825cb295c5f08f84282b4bbaeb03da0a536a826 (diff)
downloadpackages_apps_Settings-03708e030a9c85e323ba2464e908e4c9c3fc3095.zip
packages_apps_Settings-03708e030a9c85e323ba2464e908e4c9c3fc3095.tar.gz
packages_apps_Settings-03708e030a9c85e323ba2464e908e4c9c3fc3095.tar.bz2
remove disabling of Back/Dismiss button for 10" mode
bug: 4580049 Change-Id: Ifee699a3ff42282a30c3c7c61b6e7799ac902700
Diffstat (limited to 'src/com/android/settings/DateTimeSettingsSetupWizard.java')
-rw-r--r--src/com/android/settings/DateTimeSettingsSetupWizard.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/android/settings/DateTimeSettingsSetupWizard.java b/src/com/android/settings/DateTimeSettingsSetupWizard.java
index 685ee00..4ff7fc8 100644
--- a/src/com/android/settings/DateTimeSettingsSetupWizard.java
+++ b/src/com/android/settings/DateTimeSettingsSetupWizard.java
@@ -97,8 +97,15 @@ public class DateTimeSettingsSetupWizard extends Activity
mTimeZoneAdapter = ZonePicker.constructTimezoneAdapter(this, false,
R.layout.date_time_setup_custom_list_item_2);
- final View layoutRoot = findViewById(R.id.layout_root);
- layoutRoot.setSystemUiVisibility(View.STATUS_BAR_DISABLE_BACK);
+ // For the normal view, disable Back since changes stick immediately
+ // and can't be canceled, and we already have a Next button. For xLarge,
+ // though, we save up our changes and set them upon Next, so Back can
+ // cancel. And also, in xlarge, we need the keyboard dismiss button
+ // to be available.
+ if (!mUsingXLargeLayout) {
+ final View layoutRoot = findViewById(R.id.layout_root);
+ layoutRoot.setSystemUiVisibility(View.STATUS_BAR_DISABLE_BACK);
+ }
}
public void initUiForXl() {