summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorVeeti Paananen <veeti.paananen@rojekti.fi>2013-07-23 16:55:31 +0300
committerVeeti Paananen <veeti.paananen@rojekti.fi>2013-07-23 18:47:58 +0300
commitd1f1fb4064bfcef528a12a4c5176df7b44ffd48c (patch)
tree876387fc274a430cb2cd4ffcaa63575007195ce8 /res
parent2413c2418c1d55e5fd3b765428aa6616be00babd (diff)
downloadpackages_apps_settings-d1f1fb4064bfcef528a12a4c5176df7b44ffd48c.zip
packages_apps_settings-d1f1fb4064bfcef528a12a4c5176df7b44ffd48c.tar.gz
packages_apps_settings-d1f1fb4064bfcef528a12a4c5176df7b44ffd48c.tar.bz2
Hide the AM/PM preference completely if using a 24-hour clock
In addition, this commit also fixes a bug where the switch would not be disabled on a fresh 24-hour clock install, as the preference value would be null. This is avoided by using a higher-level method from DateFormat to check the clock mode. Patch Set 2: improve code styling Patch Set 3: remove pointless application context retrieval Change-Id: I80de938df61803649688723843439905e9909b07
Diffstat (limited to 'res')
-rw-r--r--res/xml/status_bar.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/xml/status_bar.xml b/res/xml/status_bar.xml
index b996c6f..9dc45e4 100644
--- a/res/xml/status_bar.xml
+++ b/res/xml/status_bar.xml
@@ -20,6 +20,7 @@
<!-- Status bar tweaks -->
<PreferenceCategory
+ android:key="status_bar_clock"
android:title="@string/status_bar_clock_title">
<CheckBoxPreference