summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceTable.cpp
diff options
context:
space:
mode:
author Andrey Yepin <ayepin@google.com> 2025-03-03 18:01:34 -0800
committer Andrey Yepin <ayepin@google.com> 2025-03-06 11:02:37 -0800
commitf4aa685b65bc8ba11239056784ad93a01b0dc0d9 (patch)
tree4ab4d60b144170db6e7721993cf0b20688df33df /tools/aapt2/ResourceTable.cpp
parent41a2018978cd0c160ffe673e475e104b49dcde6d (diff)
Fix a11y focus issue with partial scrolls and notifyDataSetChanged.
When using accessibility to navigate to an off-screen item, RecyclerView would attempt to scroll the entire view to bring the next item to the top. However, if there were insufficient items for a full scroll, and the scroll triggered a notifyDataSetChanged call, RecyclerView would incorrectly reset focus to the first visible item after the scroll. Empirically, the notifyDataSetChanged is triggred by the icon loading. The workaround for the issue is to make ChooserGridAdapter to invoke notifyItemChange when the corresponded icon gets loaded. Fix: 298193161 Test: manual testing Flag: android.service.chooser.notify_single_item_change_on_icon_load Change-Id: I6def9705e57122ae69c36d87f92cdb40b5439651
Diffstat (limited to 'tools/aapt2/ResourceTable.cpp')
0 files changed, 0 insertions, 0 deletions