Add drag and drop from AllAppsView (to the workspace).

Also had to fix AppInfoCache to load the icon as a drawable, which I had broken
when I made AllAppsView use the icons as power of two textures.
This commit is contained in:
Joe Onorato
2009-09-03 09:39:42 -07:00
parent 6665c0f1fe
commit 5162ea9b1f
6 changed files with 88 additions and 39 deletions

View File

@@ -130,12 +130,14 @@ public class AppInfoCache {
ApplicationInfo cached;
synchronized (sCache) {
cached = sCache.get(componentName);
}
if (cached != null) {
return cached.icon;
} else {
return resolveInfo.activityInfo.loadIcon(packageManager);
if (cached != null) {
if (cached.icon == null) {
cached.icon = resolveInfo.activityInfo.loadIcon(packageManager);
}
return cached.icon;
} else {
return resolveInfo.activityInfo.loadIcon(packageManager);
}
}
}