aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-12-10 17:03:07 -0800
committerDanesh M <daneshm90@gmail.com>2015-12-10 18:25:01 -0800
commit4aae79617478d8ec7aeac80959e7d566edda9f25 (patch)
tree55426024d7b746e70cbb219089e0191f73988c84 /src
parent90bc0838156185bc5adb9b2b4a3567dd89b4b3c5 (diff)
downloadvendor_cmsdk-4aae79617478d8ec7aeac80959e7d566edda9f25.zip
vendor_cmsdk-4aae79617478d8ec7aeac80959e7d566edda9f25.tar.gz
vendor_cmsdk-4aae79617478d8ec7aeac80959e7d566edda9f25.tar.bz2
cmsdk: Nuke concept of Dynamic Tiles in available tiles.
Change-Id: Iad95954603271dc42785cd4a1862200b2f8602f4
Diffstat (limited to 'src')
-rw-r--r--src/java/org/cyanogenmod/internal/util/QSConstants.java7
-rw-r--r--src/java/org/cyanogenmod/internal/util/QSUtils.java8
2 files changed, 0 insertions, 15 deletions
diff --git a/src/java/org/cyanogenmod/internal/util/QSConstants.java b/src/java/org/cyanogenmod/internal/util/QSConstants.java
index faea98d..690dac7 100644
--- a/src/java/org/cyanogenmod/internal/util/QSConstants.java
+++ b/src/java/org/cyanogenmod/internal/util/QSConstants.java
@@ -61,7 +61,6 @@ public class QSConstants {
public static final String DYNAMIC_TILE_ADB = "adb";
protected static final ArrayList<String> STATIC_TILES_AVAILABLE = new ArrayList<String>();
- protected static final ArrayList<String> DYNAMIC_TILES_AVAILABLE = new ArrayList<String>();
protected static final ArrayList<String> TILES_AVAILABLE = new ArrayList<String>();
static {
@@ -99,12 +98,6 @@ public class QSConstants {
STATIC_TILES_AVAILABLE.add(TILE_SYNC);
// STATIC_TILES_AVAILABLE.add(TILE_BATTERY_SAVER);
- DYNAMIC_TILES_AVAILABLE.add(DYNAMIC_TILE_NEXT_ALARM);
- DYNAMIC_TILES_AVAILABLE.add(DYNAMIC_TILE_IME_SELECTOR);
- DYNAMIC_TILES_AVAILABLE.add(DYNAMIC_TILE_SU);
- DYNAMIC_TILES_AVAILABLE.add(DYNAMIC_TILE_ADB);
-
TILES_AVAILABLE.addAll(STATIC_TILES_AVAILABLE);
- TILES_AVAILABLE.addAll(DYNAMIC_TILES_AVAILABLE);
}
} \ No newline at end of file
diff --git a/src/java/org/cyanogenmod/internal/util/QSUtils.java b/src/java/org/cyanogenmod/internal/util/QSUtils.java
index 8d6b2d4..14ff424 100644
--- a/src/java/org/cyanogenmod/internal/util/QSUtils.java
+++ b/src/java/org/cyanogenmod/internal/util/QSUtils.java
@@ -62,10 +62,6 @@ public class QSUtils {
return QSConstants.STATIC_TILES_AVAILABLE.contains(tileSpec);
}
- public static boolean isDynamicQsTile(String tileSpec) {
- return QSConstants.DYNAMIC_TILES_AVAILABLE.contains(tileSpec);
- }
-
@SuppressWarnings("unchecked")
public static List<String> getAvailableTiles(Context context) {
filterTiles(context);
@@ -134,10 +130,6 @@ public class QSUtils {
case QSConstants.TILE_BATTERY_SAVER:
removeTile = deviceSupportsPowerProfiles(context);
break;
-
- case QSConstants.DYNAMIC_TILE_SU:
- removeTile = !supportsRootAccess();
- break;
}
if (removeTile) {
iterator.remove();