diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-06-10 16:00:42 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-06-12 12:38:16 -0700 |
commit | b1622cc30f2fd9b579cb918083e063685950df92 (patch) | |
tree | af024a3a882a860f3c508d847a27e629d3467150 /src/com/android/launcher3/IconCache.java | |
parent | 51cd50d7f1649f4bdea42483503810735555868e (diff) | |
download | android_packages_apps_Trebuchet-b1622cc30f2fd9b579cb918083e063685950df92.tar.gz android_packages_apps_Trebuchet-b1622cc30f2fd9b579cb918083e063685950df92.tar.bz2 android_packages_apps_Trebuchet-b1622cc30f2fd9b579cb918083e063685950df92.zip |
Deleting empty folders based on DB state
> Previously folders were getting deleted based on in-memory
loader state. If for some reason, an item failed to load, we would
delete the folder from DB as well.
Bug: 21354058
Change-Id: I5318ee8a99afa9cafd93ed2b9ef0e155f502a41b
Diffstat (limited to 'src/com/android/launcher3/IconCache.java')
-rw-r--r-- | src/com/android/launcher3/IconCache.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/IconCache.java b/src/com/android/launcher3/IconCache.java index 3165337c2..432b33c6b 100644 --- a/src/com/android/launcher3/IconCache.java +++ b/src/com/android/launcher3/IconCache.java @@ -301,7 +301,7 @@ public class IconCache { c.close(); if (!itemsToRemove.isEmpty()) { mIconDb.getWritableDatabase().delete(IconDB.TABLE_NAME, - IconDB.COLUMN_ROWID + " IN ( " + TextUtils.join(", ", itemsToRemove) +" )", + Utilities.createDbSelectionQuery(IconDB.COLUMN_ROWID, itemsToRemove), null); } |