mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user