summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorRyan Lothian <rjlothian@google.com>2018-10-12 14:14:16 -0400
committerRyan Lothian <rjlothian@google.com>2018-10-15 17:24:48 -0400
commitfa530cd23f4f8f2d96e74dc169948ad141550550 (patch)
tree6a64018b92e9a98019eac063858113ee5d152ddd /res/xml
parentcf7715511e4e54bfe15d8a24e68403d6e2e34e7f (diff)
downloadandroid_packages_apps_Trebuchet-fa530cd23f4f8f2d96e74dc169948ad141550550.tar.gz
android_packages_apps_Trebuchet-fa530cd23f4f8f2d96e74dc169948ad141550550.tar.bz2
android_packages_apps_Trebuchet-fa530cd23f4f8f2d96e74dc169948ad141550550.zip
Make flags UI available on release build of launcher
The UI will only be shown on eng/userdebug platform builds. Bug: 117223984 Change-Id: I27843f2d856a4a19f3fe53c4d306606eaa5714a2
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/flag_preferences.xml24
-rw-r--r--res/xml/launcher_preferences.xml6
2 files changed, 30 insertions, 0 deletions
diff --git a/res/xml/flag_preferences.xml b/res/xml/flag_preferences.xml
new file mode 100644
index 000000000..aea1a6ab7
--- /dev/null
+++ b/res/xml/flag_preferences.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2018 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"
+ android:key="feature_flags"
+ android:persistent="false">
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml
index 3bba73a6c..1df7c2fba 100644
--- a/res/xml/launcher_preferences.xml
+++ b/res/xml/launcher_preferences.xml
@@ -52,4 +52,10 @@
android:defaultValue=""
android:persistent="false" />
+ <PreferenceScreen
+ android:fragment="com.android.launcher3.config.FlagTogglerPreferenceFragment"
+ android:key="flag_toggler"
+ android:persistent="false"
+ android:title="Feature flags"/>
+
</PreferenceScreen>