diff options
author | Rohit Yengisetty <rohit@cyngn.com> | 2016-02-23 10:17:08 -0800 |
---|---|---|
committer | Rohit Yengisetty <rohit@cyngn.com> | 2016-02-23 10:59:43 -0800 |
commit | cdee383e0d66e0d917cba511b6d48a15155dc8d3 (patch) | |
tree | ccfb0df72fe5b868635f431c1cb1d6298a61c185 /Android.mk | |
parent | 299e6558b0780549a877559617b69bf5d593576c (diff) | |
download | packages_apps_Messaging-cdee383e0d66e0d917cba511b6d48a15155dc8d3.zip packages_apps_Messaging-cdee383e0d66e0d917cba511b6d48a15155dc8d3.tar.gz packages_apps_Messaging-cdee383e0d66e0d917cba511b6d48a15155dc8d3.tar.bz2 |
Fix image re-binding issues for contacts obtained via a LookupProvider
The images loaded via information from a LookupProvider, like those in
the main Converations view, don't rebind after the view undergoes
a detatchment and re-attchment phase. RecyclerView, unlike ListView,
doesn't call bind if it deems a ViewHolder in its scrap-heap is valid.
In such cases, the ViewHolder is attached to the view hierarchy without
undergoing a bind().
The ImageViews maintain a strong binding to model-data which enables them
to free the view-state on detachment. On attachment, the view-state is
refreshed from the model-state.
The bugs we were seeing were a result of not updating the model-state with
the image information obtained from the LookupProvider.
Change-Id: Id93ee6369435211f20d7bfe16d521c79669e4f4a
Issue-Id: CYNGNOS-2118
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -52,7 +52,6 @@ LOCAL_STATIC_JAVA_LIBRARIES += libphotoviewer LOCAL_STATIC_JAVA_LIBRARIES += libphonenumber LOCAL_STATIC_JAVA_LIBRARIES += colorpicker LOCAL_STATIC_JAVA_LIBRARIES += contacts-picaso -LOCAL_STATIC_JAVA_LIBRARIES += glide include $(LOCAL_PATH)/version.mk |