mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Don't crash in onDestroy. Not all ApplicationInfos have their icons loaded.
This commit is contained in:
@@ -148,7 +148,9 @@ public class AppInfoCache {
|
||||
public static void unbindDrawables() {
|
||||
synchronized (sCache) {
|
||||
for (ApplicationInfo appInfo: sCache.values()) {
|
||||
appInfo.icon.setCallback(null);
|
||||
if (appInfo.icon != null) {
|
||||
appInfo.icon.setCallback(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user