diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2014-09-17 19:43:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-17 19:43:14 +0000 |
commit | d8293fbf284a8375da7473660c2ffeddfc08189e (patch) | |
tree | 69b524c9528791d0da19a6784b6fc859cb5cf1d3 | |
parent | 16fe1dfd30ee44be2c7c7f67b680afce875a3c3d (diff) | |
parent | 876d11e31a0e146f29775063ce1f36a1b075fb93 (diff) | |
download | Launcher3-d8293fbf284a8375da7473660c2ffeddfc08189e.tar.gz |
Merge "Null check in flushInvalidIcons" into ub-now-porkchop
-rw-r--r-- | src/com/android/launcher3/IconCache.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/IconCache.java b/src/com/android/launcher3/IconCache.java index ddc1bd949c..8a3c3193b8 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(); } } |