diff options
author | Joe Onorato <joeo@android.com> | 2010-03-17 09:14:50 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2010-03-17 10:24:53 -0700 |
commit | 8ddc4fdba06cfa786950c306475b7a4e3f6846ab (patch) | |
tree | 56a056c3f4ffdcd62a7f8d32aec88eb25477f3db /src/com/android/launcher2/LauncherModel.java | |
parent | a28fd3fa7c82947d847c05ed11905f556b8dcfa2 (diff) | |
download | android_packages_apps_Trebuchet-8ddc4fdba06cfa786950c306475b7a4e3f6846ab.tar.gz android_packages_apps_Trebuchet-8ddc4fdba06cfa786950c306475b7a4e3f6846ab.tar.bz2 android_packages_apps_Trebuchet-8ddc4fdba06cfa786950c306475b7a4e3f6846ab.zip |
Add a log message and some todos.
Change-Id: I948997d169d1833f2b61c620a02dbccae535e8de
Diffstat (limited to 'src/com/android/launcher2/LauncherModel.java')
-rw-r--r-- | src/com/android/launcher2/LauncherModel.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index c6813c378..72675b94d 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -842,6 +842,8 @@ public class LauncherModel extends BroadcastReceiver { if (!isSafeMode && (provider == null || provider.provider == null || provider.provider.getPackageName() == null)) { + Log.e(TAG, "Deleting widget that isn't installed anymore: id=" + + id + " appWidgetId=" + appWidgetId); itemsToRemove.add(id); } else { appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId); @@ -1114,6 +1116,9 @@ public class LauncherModel extends BroadcastReceiver { return null; } + // TODO: See if the PackageManager knows about this case. If it doesn't + // then return null & delete this. + // the resource -- This may implicitly give us back the fallback icon, // but don't worry about that. All we're doing with usingFallbackIcon is // to avoid saving lots of copies of that in the database, and most apps @@ -1164,6 +1169,8 @@ public class LauncherModel extends BroadcastReceiver { final ShortcutInfo info = new ShortcutInfo(); info.itemType = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT; + // TODO: If there's an explicit component and we can't install that, delete it. + info.title = c.getString(titleIndex); int iconType = c.getInt(iconTypeIndex); |