summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authornebkat <nebkat@gmail.com>2011-11-30 16:28:21 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-19 01:08:46 +0000
commit26d4b328ce5040bd6bf635020ad30a43872ebc40 (patch)
treed419d7ca3a308231b94f40978578ec6ed8ea2926 /res
parent27e6c89dbc5bed177baa5d27409cf464b1858312 (diff)
downloadpackages_apps_trebuchet-26d4b328ce5040bd6bf635020ad30a43872ebc40.zip
packages_apps_trebuchet-26d4b328ce5040bd6bf635020ad30a43872ebc40.tar.gz
packages_apps_trebuchet-26d4b328ce5040bd6bf635020ad30a43872ebc40.tar.bz2
Preferences: Hide search bar preference + others
- Restart Launcher on preferences changed - Implement "getCurrentOrientation()" Change-Id: I0728824ab994984c1dc798b61efa26b727ca3ea2
Diffstat (limited to 'res')
-rw-r--r--res/values/dimens.xml1
-rw-r--r--res/values/strings.xml3
-rw-r--r--res/xml/preferences.xml7
3 files changed, 10 insertions, 1 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index e82f618..2afcdef 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -31,6 +31,7 @@
<!-- qsb_bar_height_inset represents qsb_bar_height minus the padding
that we put on each page for allowing folders to draw out of bounds -->
<dimen name="qsb_bar_height_inset">34dp</dimen>
+ <dimen name="qsb_bar_hidden_inset">14dp</dimen>
<dimen name="qsb_bar_height">40dp</dimen>
<dimen name="qsb_padding_left">0dp</dimen>
<dimen name="qsb_padding_right">0dp</dimen>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 794a636..c9b81dc 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -293,6 +293,9 @@ s -->
<!-- UI -->
<!-- Homescreen -->
<string name="preferences_interface_homescreen_title">Homescreen</string>
+ <string name="preferences_interface_homescreen_general_category">General</string>
+ <string name="preferences_interface_homescreen_general_search_title">Search Bar</string>
+ <string name="preferences_interface_homescreen_general_search_summary">Enable persistent search bar</string>
<!-- Drawer -->
<string name="preferences_interface_drawer_title">Drawer</string>
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index 6679751..46f0af5 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -20,7 +20,12 @@
<!-- Homescreen -->
<PreferenceScreen android:key="ui_homescreen"
android:title="@string/preferences_interface_homescreen_title">
-
+ <PreferenceCategory android:title="@string/preferences_interface_homescreen_general_category">
+ <CheckBoxPreference android:key="ui_homescreen_general_search"
+ android:title="@string/preferences_interface_homescreen_general_search_title"
+ android:summary="@string/preferences_interface_homescreen_general_search_summary"
+ android:defaultValue="true" />
+ </PreferenceCategory>
</PreferenceScreen>
<!-- Drawer -->