cmsdk: Nuke concept of Dynamic Tiles in available tiles.

Change-Id: Iad95954603271dc42785cd4a1862200b2f8602f4
This commit is contained in:
Adnan Begovic 2015-12-10 17:03:07 -08:00 committed by Danesh M
parent 90bc083815
commit 4aae796174
2 changed files with 0 additions and 15 deletions

View File

@ -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);
}
}

View File

@ -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();