summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorFlamefire <alex@grundis.de>2014-04-01 11:40:55 +0200
committerFlamefire <alex@grundis.de>2014-04-22 19:40:20 +0200
commit6a43e660cce2cda206f4fecf3ed4ecf9dce8f326 (patch)
tree49ec4b23b7065fa18aa730a38afb952b8f13fe71 /res/xml
parent16310323d9c820ae98691fc5f0c459cb18524ca6 (diff)
downloadandroid_packages_apps_Trebuchet-6a43e660cce2cda206f4fecf3ed4ecf9dce8f326.tar.gz
android_packages_apps_Trebuchet-6a43e660cce2cda206f4fecf3ed4ecf9dce8f326.tar.bz2
android_packages_apps_Trebuchet-6a43e660cce2cda206f4fecf3ed4ecf9dce8f326.zip
Re-Add hidden-apps setting
Forward port from CM 10.2 PS3: Don't rename and incorporate changes from Devkota PS4: Update German translation PS5: Remove translations PS7: Hide widgets from widget list PS9: Remove debug output PS11: Rebase Change-Id: Ie06b288e22c2678fb09da1bf42d46922b8319e01
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/preferences_drawer.xml36
-rw-r--r--res/xml/preferences_headers.xml20
2 files changed, 47 insertions, 9 deletions
diff --git a/res/xml/preferences_drawer.xml b/res/xml/preferences_drawer.xml
new file mode 100644
index 000000000..c59d6b7fe
--- /dev/null
+++ b/res/xml/preferences_drawer.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher3"
+ android:key="ui_drawer"
+ android:title="@string/preferences_interface_drawer_title">
+ <PreferenceCategory android:title="@string/preferences_interface_drawer_apps_category">
+ <Preference android:key="ui_drawer_hidden_apps"
+ android:title="@string/preferences_interface_drawer_hidden_apps_title"
+ android:summary="@string/preferences_interface_drawer_hidden_apps_summary">
+ <intent android:action=".settings.HiddenAppsActivity"/>
+ </Preference>
+ <CheckBoxPreference android:key="ui_drawer_remove_hidden_apps_shortcuts"
+ android:title="@string/preferences_interface_drawer_hidden_apps_shortcuts_title"
+ android:summary="@string/preferences_interface_drawer_hidden_apps_shortcuts_summary"
+ android:defaultValue="@bool/preferences_interface_drawer_remove_hidden_apps_shortcuts_default" />
+ <CheckBoxPreference android:key="ui_drawer_remove_hidden_apps_widgets"
+ android:title="@string/preferences_interface_drawer_hidden_apps_widgets_title"
+ android:summary="@string/preferences_interface_drawer_hidden_apps_widgets_summary"
+ android:defaultValue="@bool/preferences_interface_drawer_remove_hidden_apps_widgets_default" />
+ </PreferenceCategory>
+</PreferenceScreen> \ No newline at end of file
diff --git a/res/xml/preferences_headers.xml b/res/xml/preferences_headers.xml
index bc919b2d5..42a08a9bd 100644
--- a/res/xml/preferences_headers.xml
+++ b/res/xml/preferences_headers.xml
@@ -20,20 +20,22 @@
android:fragment="com.android.launcher3.settings.SettingsActivity$HomescreenFragment"
android:title="@string/preferences_interface_homescreen_title" />
- <!--<header android:id="@+id/preferences_drawer_section"
- android:title="@string/preferences_interface_drawer_title" />
-
- <header android:id="@+id/preferences_dock_section"
+ <header android:id="@+id/preferences_drawer_section"
+ android:fragment="com.android.launcher3.settings.SettingsActivity$DrawerFragment"
+ android:title="@string/preferences_interface_drawer_title"
+ android:summary="@string/preferences_interface_drawer_summary" />
+
+ <!--<header android:id="@+id/preferences_dock_section"
android:title="@string/preferences_interface_dock_title" />-->
-
+
<header android:id="@+id/preferences_general_section"
android:fragment="com.android.launcher3.settings.SettingsActivity$GeneralFragment"
android:title="@string/preferences_interface_general_title" />
-
+
<header android:id="@+id/preferences_application_section"
- android:title="@string/preferences_application_title" />
-
+ android:title="@string/preferences_application_title" />
+
<header android:id="@+id/preferences_application_version"
- android:summary="@string/application_copyright" />
+ android:summary="@string/application_copyright" />
</preference-headers>