Always check if the view can be recycled.
Previously, the recycling was only checked for multiple layout, as it was assumed the AppWidgetHostView would make the basic check. However, adapters views (e.g. ListView, ...) do not make any recycling check, instead relying on caching using the Layout id. The caching cannot be changed as it is common to other parts of Android. This CL ensures the view can be recycled when reapplied, always. Bug: 181985606 Test: atest android.widget.cts.RemoteViewsRecyclingTest Change-Id: Ib01c511e4a793cce1519157aea06e194a2d8f855
Loading
Please register or sign in to comment