diff options
author | Stevie Kideckel <kideckel@google.com> | 2021-06-07 14:46:52 +0000 |
---|---|---|
committer | Stevie Kideckel <kideckel@google.com> | 2021-06-07 14:46:52 +0000 |
commit | bfbe46198cb2f718862fa870509ec7f16f8f6c46 (patch) | |
tree | 40829e3f92593b040df236a7d3dfb71a14d8c5a5 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | ebcaa39d6b87e25e2f87319943186ea006405af5 (diff) |
Fix handling for onItemClick of fixed collection items
The onItemClick handling code assumed that the item would be nested at
least one layer deep due to the RemoteViewsAdapter adding a wrapper view
group.
Rather than add another case to that logic, I've refactored this to
traverse the view's children looking for a view with the tag. As the
tag is internal, there should only ever be one child with it and we'll
always want that one to handle the click.
Fix: 190353630
Test: locally
Test: atest RemoteViewsFixedCollectionAdapterTest
Change-Id: I22057f148d33482ad84fff592b9f7f554fa2bfad
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions