cmsdk: Nuke concept of Dynamic Tiles in available tiles.
Change-Id: Iad95954603271dc42785cd4a1862200b2f8602f4
This commit is contained in:
parent
90bc083815
commit
4aae796174
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue