Check if the view can be recycled if viewId is set
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. Note, however, that some apps are already using this lack of test to create the view themselves and use reapply to apply the RemoteViews. So we limit the test to uses involving changing the viewId. This CL ensures the view can be recycled when reapplied, always. Bug: 181985606 Test: atest android.widget.cts.RemoteViewsRecyclingTest Change-Id: Ib4f908c66a666faa4e6c27e2be38246eb7748f61
Loading
Please register or sign in to comment