diff options
author | Pierre Barbier de Reuille <pbdr@google.com> | 2021-11-09 09:49:05 +0000 |
---|---|---|
committer | Pierre Barbier de Reuille <pbdr@google.com> | 2021-11-10 12:33:49 +0000 |
commit | ff55ff2c961f4762a9716bb3580393d9f2738351 (patch) | |
tree | 2f8a131c72b79f3b71a846e7e78bbce361834ba5 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d9422307101e18a34a8de62037a77c015ff4541a (diff) |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions