diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-04-21 14:30:18 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-05-11 15:21:42 -0700 |
commit | eb4b79935e9f75dda72e4953f45e616e252d7b03 (patch) | |
tree | 5d99db4651efdbf698cda8a59016b8db5335ac9e /src/com/android/launcher3/AutoInstallsLayout.java | |
parent | 4dcd8ffecc5bbdc5c7496cea4eb6808f4026bf9e (diff) | |
download | android_packages_apps_Trebuchet-eb4b79935e9f75dda72e4953f45e616e252d7b03.tar.gz android_packages_apps_Trebuchet-eb4b79935e9f75dda72e4953f45e616e252d7b03.tar.bz2 android_packages_apps_Trebuchet-eb4b79935e9f75dda72e4953f45e616e252d7b03.zip |
Removing icon_type column
Icon type is not used consistently. It is used initially
during the loader. Afterwards, we save both the icon and resource to the db.
Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available,
always write the bitmap to DB whenever the shortcut is edited.
Change-Id: I0ea5e88f8904bd3250ca669220b3e5d6aeef1bfd
Diffstat (limited to 'src/com/android/launcher3/AutoInstallsLayout.java')
-rw-r--r-- | src/com/android/launcher3/AutoInstallsLayout.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/launcher3/AutoInstallsLayout.java b/src/com/android/launcher3/AutoInstallsLayout.java index a04c5570a..f3a2bdc98 100644 --- a/src/com/android/launcher3/AutoInstallsLayout.java +++ b/src/com/android/launcher3/AutoInstallsLayout.java @@ -436,7 +436,6 @@ public class AutoInstallsLayout { } ItemInfo.writeBitmap(mValues, Utilities.createIconBitmap(icon, mContext)); - mValues.put(Favorites.ICON_TYPE, Favorites.ICON_TYPE_RESOURCE); mValues.put(Favorites.ICON_PACKAGE, mIconRes.getResourcePackageName(iconId)); mValues.put(Favorites.ICON_RESOURCE, mIconRes.getResourceName(iconId)); |