summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/IconCache.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-06-10 16:00:42 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-06-12 12:38:16 -0700
commitb1622cc30f2fd9b579cb918083e063685950df92 (patch)
treeaf024a3a882a860f3c508d847a27e629d3467150 /src/com/android/launcher3/IconCache.java
parent51cd50d7f1649f4bdea42483503810735555868e (diff)
downloadandroid_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.java2
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);
}