summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstofstik <verstegen.daan@gmail.com>2013-03-10 15:53:38 +0100
committerstofstik <verstegen.daan@gmail.com>2013-03-11 12:41:53 +0100
commite6998a4078e1a4488dc803b7517d65bf78c76979 (patch)
tree7ada1969dff978d5bf0d91327585f63e461ef8f7
parentc7177f87e1e007ac722e9a7143781560fddd7608 (diff)
downloadpackages_apps_settings-e6998a4078e1a4488dc803b7517d65bf78c76979.zip
packages_apps_settings-e6998a4078e1a4488dc803b7517d65bf78c76979.tar.gz
packages_apps_settings-e6998a4078e1a4488dc803b7517d65bf78c76979.tar.bz2
Added Volume Tile to Tile chooser in Settings
Change-Id: Iafaf817e380790dadbf5eb41bd27c19927645e1e
-rw-r--r--res/values/strings.xml1
-rw-r--r--src/com/android/settings/cyanogenmod/QuickSettingsUtil.java12
2 files changed, 9 insertions, 4 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 877222b..ed84c46 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -5078,6 +5078,7 @@
<string name="title_tile_screen_timeout">Screen timeout</string>
<string name="title_tile_usb_tether">USB Tether</string>
<string name="title_tile_quiet_hours">Quiet hours</string>
+ <string name="title_tile_volume">Volume</string>
<string name="title_dynamic_tiles">Dynamic tiles</string>
<string name="dynamic_tiles_note_title">Note</string>
diff --git a/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java b/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java
index 29456bd..4a512f1 100644
--- a/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java
+++ b/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java
@@ -38,19 +38,20 @@ import static com.android.internal.util.cm.QSConstants.TILE_SLEEP;
import static com.android.internal.util.cm.QSConstants.TILE_SYNC;
import static com.android.internal.util.cm.QSConstants.TILE_TORCH;
import static com.android.internal.util.cm.QSConstants.TILE_USER;
+import static com.android.internal.util.cm.QSConstants.TILE_VOLUME;
import static com.android.internal.util.cm.QSConstants.TILE_WIFI;
import static com.android.internal.util.cm.QSConstants.TILE_WIFIAP;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.LinkedHashMap;
+
import android.content.Context;
import android.provider.Settings;
import android.text.TextUtils;
import com.android.settings.R;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.LinkedHashMap;
-
public class QuickSettingsUtil {
// Keep sorted according to titleResId's string value
@@ -116,6 +117,9 @@ public class QuickSettingsUtil {
TILES.put(TILE_TORCH, new QuickSettingsUtil.TileInfo(
TILE_TORCH, R.string.title_tile_torch,
"com.android.systemui:drawable/ic_qs_torch_off"));
+ TILES.put(TILE_VOLUME, new QuickSettingsUtil.TileInfo(
+ TILE_VOLUME, R.string.title_tile_volume,
+ "com.android.systemui:drawable/ic_qs_volume"));
TILES.put(TILE_WIFI, new QuickSettingsUtil.TileInfo(
TILE_WIFI, R.string.title_tile_wifi,
"com.android.systemui:drawable/ic_qs_wifi_4"));