diff options
author | Svetoslav <svetoslavganov@google.com> | 2015-07-20 14:00:58 -0700 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2015-07-20 14:01:01 -0700 |
commit | 457ec9e66810ac5351399ca12897ba0676e607d4 (patch) | |
tree | 1f4663c032b82fd4ca5c90abf1cc9a7318759ac8 /core/java/android/widget | |
parent | 2dcfc7a9972de3abfebdf2d84bcba0095e4fbae5 (diff) | |
download | frameworks_base-457ec9e66810ac5351399ca12897ba0676e607d4.zip frameworks_base-457ec9e66810ac5351399ca12897ba0676e607d4.tar.gz frameworks_base-457ec9e66810ac5351399ca12897ba0676e607d4.tar.bz2 |
Always create nodes for views backed by an adapter.
Some views are backed by adapter and if the adapter changed
but views are not updated we were not reporting the views.
This is not correct as the accessibility layer should always
access whatever is on the screen regardless if we know it
will change in the next layout pass.
bug:20920903
Change-Id: I5851c886848e7b8e59b76419c22124790d7e6f05
Diffstat (limited to 'core/java/android/widget')
-rw-r--r-- | core/java/android/widget/AbsListView.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index b2b98db..ed858e7 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -1556,13 +1556,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te if (accessibilityId == getAccessibilityViewId()) { return this; } - // If the data changed the children are invalid since the data model changed. - // Hence, we pretend they do not exist. After a layout the children will sync - // with the model at which point we notify that the accessibility state changed, - // so a service will be able to re-fetch the views. - if (mDataChanged) { - return null; - } return super.findViewByAccessibilityIdTraversal(accessibilityId); } @@ -2409,18 +2402,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te class ListItemAccessibilityDelegate extends AccessibilityDelegate { @Override - public AccessibilityNodeInfo createAccessibilityNodeInfo(View host) { - // If the data changed the children are invalid since the data model changed. - // Hence, we pretend they do not exist. After a layout the children will sync - // with the model at which point we notify that the accessibility state changed, - // so a service will be able to re-fetch the views. - if (mDataChanged) { - return null; - } - return super.createAccessibilityNodeInfo(host); - } - - @Override public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(host, info); |