diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2014-09-17 20:46:27 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-17 20:46:27 +0000 |
commit | 7b0982d819b2baf5e4061f5d64a6b7b3da459e7f (patch) | |
tree | 69b524c9528791d0da19a6784b6fc859cb5cf1d3 | |
parent | 4824965fc5b403d3ca5018f65077d953e3b80b42 (diff) | |
parent | d8293fbf284a8375da7473660c2ffeddfc08189e (diff) | |
download | android_packages_apps_Trebuchet-7b0982d819b2baf5e4061f5d64a6b7b3da459e7f.tar.gz android_packages_apps_Trebuchet-7b0982d819b2baf5e4061f5d64a6b7b3da459e7f.tar.bz2 android_packages_apps_Trebuchet-7b0982d819b2baf5e4061f5d64a6b7b3da459e7f.zip |
am d8293fbf: Merge "Null check in flushInvalidIcons" into ub-now-porkchop
* commit 'd8293fbf284a8375da7473660c2ffeddfc08189e':
Null check in flushInvalidIcons
-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 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(); } } |