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:
Amith Yamasani
2014-08-06 15:48:10 -07:00
parent 1fcd7faad6
commit 57fd5fd84b
2 changed files with 20 additions and 19 deletions

View File

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