summaryrefslogtreecommitdiffstats
path: root/core/java/android/text/method
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-05-08 14:23:32 -0700
committerSvetoslav <svetoslavganov@google.com>2013-05-08 14:23:38 -0700
commit5b578daac9cea174b15fcd13528270270aadd8a2 (patch)
treefef53d2d471855e3b0501b9c8ba00e51066679fc /core/java/android/text/method
parent4c95c5377a75a3d6c5f3ed8b09a56071d51fadb1 (diff)
downloadframeworks_base-5b578daac9cea174b15fcd13528270270aadd8a2.zip
frameworks_base-5b578daac9cea174b15fcd13528270270aadd8a2.tar.gz
frameworks_base-5b578daac9cea174b15fcd13528270270aadd8a2.tar.bz2
Accessibility should not query for list items when data set changed.
AbsListView is backed by an adapter. After the adapter data changes the view sets a flag that its state is dirty and requests a layout. If an accessibility service asks for the state of a list item at this point, it may incur an error since the views and the adapter are not in sync. Now if an accessibility service queries for a list item when the data set is changed and the item views are dirty, we pretend the children do not exist. After the layout happens, we notify the accessibility layer that the screen content changed so it can refetch the views if desired (this notification mechanism is already in place in AbsListView#handleDataChanged()). bug:8433433 Change-Id: I4287a0ac2ef6bb33f1f988d5ddad973556c305ca
Diffstat (limited to 'core/java/android/text/method')
0 files changed, 0 insertions, 0 deletions