diff options
author | Scott Kennedy <skennedy@google.com> | 2013-07-30 22:35:28 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-07-30 22:35:28 -0700 |
commit | 3fc2d99dabce30def058bb34f97eb0947a1c8f52 (patch) | |
tree | f5e9e6f23ba4556de7a752b3a4749025beff4a28 | |
parent | dc660babb68131f3fd9c62c1c1e640869d21bd92 (diff) | |
parent | ad1d181cd21ee598512c142150e79be754209548 (diff) | |
download | android_frameworks_ex-3fc2d99dabce30def058bb34f97eb0947a1c8f52.tar.gz android_frameworks_ex-3fc2d99dabce30def058bb34f97eb0947a1c8f52.tar.bz2 android_frameworks_ex-3fc2d99dabce30def058bb34f97eb0947a1c8f52.zip |
am ad1d181c: Don\'t bother storing a null value in the cache
* commit 'ad1d181cd21ee598512c142150e79be754209548':
Don't bother storing a null value in the cache
-rw-r--r-- | chips/src/com/android/ex/chips/BaseRecipientAdapter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java index 8af8d2c..dd74f30 100644 --- a/chips/src/com/android/ex/chips/BaseRecipientAdapter.java +++ b/chips/src/com/android/ex/chips/BaseRecipientAdapter.java @@ -798,8 +798,10 @@ public abstract class BaseRecipientAdapter extends BaseAdapter implements Filter mHandler.post(new Runnable() { @Override public void run() { - mPhotoCacheMap.put(photoThumbnailUri, photoBytes); - notifyDataSetChanged(); + if (photoBytes != null) { + mPhotoCacheMap.put(photoThumbnailUri, photoBytes); + notifyDataSetChanged(); + } } }); } |