summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"));