summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java
diff options
context:
space:
mode:
authorDvTonder <david.vantonder@gmail.com>2012-12-23 15:25:22 -0500
committerDvTonder <david.vantonder@gmail.com>2012-12-23 15:25:22 -0500
commit98a699a3d4638f255d2af0c27bd35f8c1e0ce008 (patch)
treee43ed6ff90b76f30eb67aca403c74f6e8d4538e6 /src/com/android/settings/cyanogenmod/QuickSettingsUtil.java
parent3557bf416d35e4ea8165cf25f5257caeb3b2dea9 (diff)
downloadpackages_apps_settings-98a699a3d4638f255d2af0c27bd35f8c1e0ce008.zip
packages_apps_settings-98a699a3d4638f255d2af0c27bd35f8c1e0ce008.tar.gz
packages_apps_settings-98a699a3d4638f255d2af0c27bd35f8c1e0ce008.tar.bz2
Settings: Add Screen timeout Quick Settings Tile (1 of 2)
Change-Id: I385ef755ad7cf4a3c02dd8c7b739d5cb33aa2e90
Diffstat (limited to 'src/com/android/settings/cyanogenmod/QuickSettingsUtil.java')
-rw-r--r--src/com/android/settings/cyanogenmod/QuickSettingsUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java b/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java
index 54e84d6..d3b80a5 100644
--- a/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java
+++ b/src/com/android/settings/cyanogenmod/QuickSettingsUtil.java
@@ -124,6 +124,9 @@ public class QuickSettingsUtil {
TILES.put(TILE_SYNC, new QuickSettingsUtil.TileInfo(
TILE_SYNC, R.string.title_tile_sync,
"com.android.systemui:drawable/ic_qs_sync_off"));
+ TILES.put(TILE_SCREENTIMEOUT, new QuickSettingsUtil.TileInfo(
+ TILE_SCREENTIMEOUT, R.string.title_tile_screen_timeout,
+ "com.android.systemui:drawable/ic_qs_screen_timeout_off"));
TILES.put(TILE_TORCH, new QuickSettingsUtil.TileInfo(
TILE_TORCH, R.string.title_tile_torch,
"com.android.systemui:drawable/ic_qs_torch_off"));
@@ -138,9 +141,6 @@ public class QuickSettingsUtil {
"com.android.systemui:drawable/ic_qs_default_user"));
// These toggles are not available yet. Comment out for now
-// TILES.put(TILE_SCREENTIMEOUT, new QuickSettingsUtil.TileInfo(
-// TILE_SCREENTIMEOUT, R.string.title_tile_screentimeout,
-// "com.android.systemui:drawable/stat_screen_timeout_on"));
// if(PhoneConstants.LTE_ON_CDMA_TRUE == TelephonyManager.getDefault().getLteOnCdmaMode() ||
// TelephonyManager.getDefault().getLteOnGsmMode() != 0) {
// TILES.put(TILE_LTE, new QuickSettingsUtil.TileInfo(