summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-04-20 23:06:17 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-04-20 23:06:17 +0200
commit9c4f4e1d06ff77539990c70dd65fb3dcf167f583 (patch)
tree40b60cfa372a7e478952311abda1bd0331e2c31c /packages
parent580806664189e1e345668b5135435408568f97a1 (diff)
downloadframeworks_base-9c4f4e1d06ff77539990c70dd65fb3dcf167f583.zip
frameworks_base-9c4f4e1d06ff77539990c70dd65fb3dcf167f583.tar.gz
frameworks_base-9c4f4e1d06ff77539990c70dd65fb3dcf167f583.tar.bz2
SettingsProvider: Allow for quick settings tiles configuration
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'packages')
-rw-r--r--packages/SettingsProvider/res/values/defaults.xml2
-rw-r--r--packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java3
2 files changed, 5 insertions, 0 deletions
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml
index b00cb44..5116594 100644
--- a/packages/SettingsProvider/res/values/defaults.xml
+++ b/packages/SettingsProvider/res/values/defaults.xml
@@ -197,6 +197,8 @@
2. Left -->
<integer name="def_qs_quick_pulldown">0</integer>
+ <string name="def_quick_settings_tiles">toggleUser|toggleBrightness|toggleSettings|toggleWifi|toggleMobileData|toggleBattery|toggleAirplane|toggleBluetooth</string>
+
<!-- Default for Settings.System.LOCKSCREEN_TARGETS. -->
<string name="def_lockscreen_targets" translatable="false"></string>
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
index efedf56..e60f5a9 100644
--- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
+++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
@@ -1979,6 +1979,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
loadIntegerSetting(stmt, Settings.System.QS_QUICK_PULLDOWN,
R.integer.def_qs_quick_pulldown);
+ loadStringSetting(stmt, Settings.System.QUICK_SETTINGS_TILES,
+ R.string.def_quick_settings_tiles);
+
loadStringSetting(stmt, Settings.System.LOCKSCREEN_TARGETS,
R.string.def_lockscreen_targets);
loadIntegerSetting(stmt, Settings.System.UI_FORCE_OVERFLOW_BUTTON,