summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-05-04 13:51:55 -0700
committerRoman Birg <roman@cyngn.com>2016-05-04 22:29:34 -0700
commit26c932ea37148f4d336e6a69adf057bf8ddcb09e (patch)
tree422ad2d932ed0c457b1bc8a116bcb8c708a39fb3 /packages/SystemUI/res
parent8aefa3117ac6f2d50bce540ecc10e1e024e7827e (diff)
downloadframeworks_base-26c932ea37148f4d336e6a69adf057bf8ddcb09e.zip
frameworks_base-26c932ea37148f4d336e6a69adf057bf8ddcb09e.tar.gz
frameworks_base-26c932ea37148f4d336e6a69adf057bf8ddcb09e.tar.bz2
SystemUI: implement properly saving tile locations
Use new persisted key which does not use the tiles' ID (which changes usually across reboots with every tile). When the Custom tile service comes up, it will update the placeholder tiles created with their real values and the order is preserved properly. Ticket: CYNGNOS-2530 Change-Id: I5e75c739553969f1d92c249f521a476259fe0cd6 Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/drawable/ic_dynamic_qs_live_display.xml29
-rw-r--r--packages/SystemUI/res/values/cm_arrays.xml3
-rw-r--r--packages/SystemUI/res/values/cm_strings.xml1
3 files changed, 33 insertions, 0 deletions
diff --git a/packages/SystemUI/res/drawable/ic_dynamic_qs_live_display.xml b/packages/SystemUI/res/drawable/ic_dynamic_qs_live_display.xml
new file mode 100644
index 0000000..fc1c4d6
--- /dev/null
+++ b/packages/SystemUI/res/drawable/ic_dynamic_qs_live_display.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (c) 2015 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.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M19,5v14H5V5H19
+M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z
+M10.7,13.3h2.6L12,9.2L10.7,13.3z
+M14.6,17l-0.8-2.2h-3.6L9.4,17H7.3l3.6-10h2.2l3.6,10H14.6z" />
+</vector> \ No newline at end of file
diff --git a/packages/SystemUI/res/values/cm_arrays.xml b/packages/SystemUI/res/values/cm_arrays.xml
index ab3a7f5..1b0c2bf 100644
--- a/packages/SystemUI/res/values/cm_arrays.xml
+++ b/packages/SystemUI/res/values/cm_arrays.xml
@@ -61,18 +61,21 @@
<item>@string/dynamic_qs_tile_ime_selector_label</item>
<item>@string/dynamic_qs_tile_su_label</item>
<item>@string/dynamic_qs_tile_adb_label</item>
+ <item>@string/dynamic_qs_tile_live_display_label</item>
</string-array>
<string-array name="dynamic_qs_tiles_icons_resources_ids" translatable="false">
<item>ic_dynamic_qs_next_alarm</item>
<item>ic_dynamic_qs_ime_selector</item>
<item>ic_dynamic_qs_su</item>
<item>ic_dynamic_qs_adb</item>
+ <item>ic_dynamic_qs_live_display</item>
</string-array>
<string-array name="dynamic_qs_tiles_values" translatable="false">
<item>next_alarm</item>
<item>ime_selector</item>
<item>su</item>
<item>adb</item>
+ <item>live_display</item>
</string-array>
<array name="dockbatterymeter_bolt_points" translatable="false">
diff --git a/packages/SystemUI/res/values/cm_strings.xml b/packages/SystemUI/res/values/cm_strings.xml
index 91941ba..c8986af 100644
--- a/packages/SystemUI/res/values/cm_strings.xml
+++ b/packages/SystemUI/res/values/cm_strings.xml
@@ -206,6 +206,7 @@
<string name="dynamic_qs_tile_ime_selector_label">IME selector</string>
<string name="dynamic_qs_tile_su_label">Root access</string>
<string name="dynamic_qs_tile_adb_label" translatable="false">ADB</string>
+ <string name="dynamic_qs_tile_live_display_label">Live Display</string>
<string name="quick_settings_title_advanced_location">Tri-state location</string>