summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/package.html
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-09-10 11:10:41 -0400
committerAlan Viverette <alanv@google.com>2015-09-10 15:17:11 +0000
commita84dda54e408ce23ae0a77e35bf78c22ddd81351 (patch)
tree74e7b0f0e0307f85989adbdb61ac6e02b689745a /core/java/android/widget/package.html
parent0018323c07d119fde7260d66f60dd9987c7b74ea (diff)
downloadframeworks_base-a84dda54e408ce23ae0a77e35bf78c22ddd81351.zip
frameworks_base-a84dda54e408ce23ae0a77e35bf78c22ddd81351.tar.gz
frameworks_base-a84dda54e408ce23ae0a77e35bf78c22ddd81351.tar.bz2
Avoid OOBE when AbsListView layout is out of sync with adapter
Views are not synchronized with adapter state until a layout pass occurs, which may cause an OOBE if a list item is removed and an accessibility node is obtained before the next layout pass. This CL caches the item's enabled state on the bound view's layout params, which allows us to avoid relying on the adapter to populate accessibility nodes. It also aborts actions if the target position is no longer valid. Updates the documentation on AdapterView to reflect that the result of getPositionForView() may not be synchronized with the adapter. Bug: 23943664 Change-Id: I90ca946bead1d87a179eab1c2f482a54bcce9c38
Diffstat (limited to 'core/java/android/widget/package.html')
0 files changed, 0 insertions, 0 deletions