diff options
author | Roman Birg <roman@cyngn.com> | 2016-01-01 12:06:17 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-01-04 14:41:20 -0800 |
commit | 93d770d4d9c1889fa22bc2b18b6e109419e1cc6b (patch) | |
tree | ae9af13f6d8cacba54c6ff9efb548d1e89820c13 /packages/SystemUI/res/xml | |
parent | 40861e5d7ffa65b855bb898f0b1b46dcf1054041 (diff) | |
download | frameworks_base-93d770d4d9c1889fa22bc2b18b6e109419e1cc6b.zip frameworks_base-93d770d4d9c1889fa22bc2b18b6e109419e1cc6b.tar.gz frameworks_base-93d770d4d9c1889fa22bc2b18b6e109419e1cc6b.tar.bz2 |
SystemUI: clean up tuner
- Remove preferences we handle elsewhere (battery)
- Remove link to QSTuner
- Separate out statusbar icon prefs into separate preferences so we can
launch it externally
Change-Id: Icc01b443dab945374a0df19a4f0359e3df4ea7d9
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI/res/xml')
-rw-r--r-- | packages/SystemUI/res/xml/tuner_prefs.xml | 55 | ||||
-rw-r--r-- | packages/SystemUI/res/xml/tuner_statusbar_icons.xml | 60 |
2 files changed, 62 insertions, 53 deletions
diff --git a/packages/SystemUI/res/xml/tuner_prefs.xml b/packages/SystemUI/res/xml/tuner_prefs.xml index 3a41c3c..2d70faa 100644 --- a/packages/SystemUI/res/xml/tuner_prefs.xml +++ b/packages/SystemUI/res/xml/tuner_prefs.xml @@ -18,59 +18,8 @@ android:title="@string/system_ui_tuner"> <Preference - android:key="qs_tuner" - android:title="@string/quick_settings" /> - - <PreferenceScreen - android:title="@string/status_bar" > - - <com.android.systemui.tuner.StatusBarSwitch - android:key="cast" - android:title="@string/quick_settings_cast_title" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="hotspot" - android:title="@string/quick_settings_hotspot_label" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="bluetooth" - android:title="@string/quick_settings_bluetooth_label" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="zen" - android:title="@string/quick_settings_dnd_label" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="alarm_clock" - android:title="@string/status_bar_alarm" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="managed_profile" - android:title="@string/status_bar_work" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="wifi" - android:title="@string/quick_settings_wifi_label" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="ethernet" - android:title="@string/status_bar_ethernet" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="mobile" - android:title="@string/quick_settings_cellular_detail_title" /> - - <com.android.systemui.tuner.StatusBarSwitch - android:key="airplane" - android:title="@string/status_bar_airplane" /> - - </PreferenceScreen> - - <SwitchPreference - android:key="battery_pct" - android:title="@string/show_battery_percentage" - android:summary="@string/show_battery_percentage_summary" - android:persistent="false" /> + android:key="statusbar_icon_blacklist" + android:title="@string/status_bar" /> <Preference android:key="demo_mode" diff --git a/packages/SystemUI/res/xml/tuner_statusbar_icons.xml b/packages/SystemUI/res/xml/tuner_statusbar_icons.xml new file mode 100644 index 0000000..863c8b0 --- /dev/null +++ b/packages/SystemUI/res/xml/tuner_statusbar_icons.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 The CyanogenMod 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:title="@string/status_bar"> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="cast" + android:title="@string/quick_settings_cast_title"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="hotspot" + android:title="@string/quick_settings_hotspot_label"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="bluetooth" + android:title="@string/quick_settings_bluetooth_label"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="zen" + android:title="@string/quick_settings_dnd_label"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="alarm_clock" + android:title="@string/status_bar_alarm"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="managed_profile" + android:title="@string/status_bar_work"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="wifi" + android:title="@string/quick_settings_wifi_label"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="ethernet" + android:title="@string/status_bar_ethernet"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="mobile" + android:title="@string/quick_settings_cellular_detail_title"/> + + <com.android.systemui.tuner.StatusBarSwitch + android:key="airplane" + android:title="@string/status_bar_airplane"/> + +</PreferenceScreen> |