summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2014-09-17 19:43:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-17 19:43:14 +0000
commitd8293fbf284a8375da7473660c2ffeddfc08189e (patch)
tree69b524c9528791d0da19a6784b6fc859cb5cf1d3
parent16fe1dfd30ee44be2c7c7f67b680afce875a3c3d (diff)
parent876d11e31a0e146f29775063ce1f36a1b075fb93 (diff)
downloadandroid_packages_apps_Trebuchet-d8293fbf284a8375da7473660c2ffeddfc08189e.tar.gz
android_packages_apps_Trebuchet-d8293fbf284a8375da7473660c2ffeddfc08189e.tar.bz2
android_packages_apps_Trebuchet-d8293fbf284a8375da7473660c2ffeddfc08189e.zip
Merge "Null check in flushInvalidIcons" into ub-now-porkchop
-rw-r--r--src/com/android/launcher3/IconCache.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/IconCache.java b/src/com/android/launcher3/IconCache.java
index ddc1bd949..8a3c3193b 100644
--- a/src/com/android/launcher3/IconCache.java
+++ b/src/com/android/launcher3/IconCache.java
@@ -229,7 +229,8 @@ public class IconCache {
Iterator<Entry<CacheKey, CacheEntry>> it = mCache.entrySet().iterator();
while (it.hasNext()) {
final CacheEntry e = it.next().getValue();
- if (e.icon.getWidth() < grid.iconSizePx || e.icon.getHeight() < grid.iconSizePx) {
+ if ((e.icon != null) && (e.icon.getWidth() < grid.iconSizePx
+ || e.icon.getHeight() < grid.iconSizePx)) {
it.remove();
}
}