summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/LauncherModel.java
diff options
context:
space:
mode:
authorDanesh Mondegarian <daneshm90@gmail.com>2013-09-15 21:27:47 -0700
committerDanesh Mondegarian <daneshm90@gmail.com>2013-09-29 20:06:51 -0700
commitd0a92d6799a340fbbab924e0a128f189d6284e1c (patch)
tree49bae479f721dc829a619719aeddecef5d5ac1f5 /src/com/cyanogenmod/trebuchet/LauncherModel.java
parenteead7ecc910af0f3cd07a660e0145e00c738128f (diff)
downloadandroid_packages_apps_Trebuchet-d0a92d6799a340fbbab924e0a128f189d6284e1c.tar.gz
android_packages_apps_Trebuchet-d0a92d6799a340fbbab924e0a128f189d6284e1c.tar.bz2
android_packages_apps_Trebuchet-d0a92d6799a340fbbab924e0a128f189d6284e1c.zip
Trebuchet : Icon edit dialog fixes
Append text rather than setText for the edit dialog title, so that the cursor moves to the end. Keep track of customIconResource state to ensure its not reset. Preserve custom icons when the linking application is updated Change-Id: Icab0f0ce45f1dbb79ce895228303aa2c944f1213
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/LauncherModel.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/LauncherModel.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/LauncherModel.java b/src/com/cyanogenmod/trebuchet/LauncherModel.java
index 08efc6fa8..51fac6f7a 100644
--- a/src/com/cyanogenmod/trebuchet/LauncherModel.java
+++ b/src/com/cyanogenmod/trebuchet/LauncherModel.java
@@ -2321,6 +2321,7 @@ public class LauncherModel extends BroadcastReceiver {
}
Bitmap customIcon = getCustomIconFromCursor(c, context, customIconIndex);
if (customIcon != null) {
+ info.customIconResource = c.getString(customIconIndex);
icon = customIcon;
}
@@ -2461,6 +2462,7 @@ public class LauncherModel extends BroadcastReceiver {
}
Bitmap customIcon = getCustomIconFromCursor(c, context, customIconIndex);
if (customIcon != null) {
+ info.customIconResource = c.getString(customIconIndex);
icon = customIcon;
}
info.setIcon(icon);