Fix removal of optional settings tiles
Bug: 16654819 Fix the way the tiles get removed so the index is not out of sync and there's no double deletion of entries. Change-Id: I18da6b633884f51418c11afb0e177b49ca085fd0
This commit is contained in:
@@ -177,7 +177,7 @@ public final class Utils {
|
||||
}
|
||||
|
||||
public static boolean updateTileToSpecificActivityFromMetaDataOrRemove(Context context,
|
||||
DashboardCategory target, DashboardTile tile) {
|
||||
DashboardTile tile) {
|
||||
|
||||
Intent intent = tile.intent;
|
||||
if (intent != null) {
|
||||
@@ -230,9 +230,6 @@ public final class Utils {
|
||||
}
|
||||
}
|
||||
|
||||
// Did not find a matching activity, so remove the preference
|
||||
target.removeTile(tile);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user