summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherSettings.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-04-21 14:30:18 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-05-11 15:21:42 -0700
commiteb4b79935e9f75dda72e4953f45e616e252d7b03 (patch)
tree5d99db4651efdbf698cda8a59016b8db5335ac9e /src/com/android/launcher3/LauncherSettings.java
parent4dcd8ffecc5bbdc5c7496cea4eb6808f4026bf9e (diff)
downloadandroid_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/LauncherSettings.java')
-rw-r--r--src/com/android/launcher3/LauncherSettings.java23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/com/android/launcher3/LauncherSettings.java b/src/com/android/launcher3/LauncherSettings.java
index 13e45476a..095670dc9 100644
--- a/src/com/android/launcher3/LauncherSettings.java
+++ b/src/com/android/launcher3/LauncherSettings.java
@@ -70,35 +70,19 @@ public class LauncherSettings {
public static final int ITEM_TYPE_SHORTCUT = 1;
/**
- * The icon type.
- * <P>Type: INTEGER</P>
- */
- public static final String ICON_TYPE = "iconType";
-
- /**
- * The icon is a resource identified by a package name and an integer id.
- */
- public static final int ICON_TYPE_RESOURCE = 0;
-
- /**
- * The icon is a bitmap.
- */
- public static final int ICON_TYPE_BITMAP = 1;
-
- /**
- * The icon package name, if icon type is ICON_TYPE_RESOURCE.
+ * The icon package name in Intent.ShortcutIconResource
* <P>Type: TEXT</P>
*/
public static final String ICON_PACKAGE = "iconPackage";
/**
- * The icon resource id, if icon type is ICON_TYPE_RESOURCE.
+ * The icon resource name in Intent.ShortcutIconResource
* <P>Type: TEXT</P>
*/
public static final String ICON_RESOURCE = "iconResource";
/**
- * The custom icon bitmap, if icon type is ICON_TYPE_BITMAP.
+ * The custom icon bitmap.
* <P>Type: BLOB</P>
*/
public static final String ICON = "icon";
@@ -272,7 +256,6 @@ public class LauncherSettings {
"spanY INTEGER," +
"itemType INTEGER," +
"appWidgetId INTEGER NOT NULL DEFAULT -1," +
- "iconType INTEGER," +
"iconPackage TEXT," +
"iconResource TEXT," +
"icon BLOB," +