Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 373ee381 authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am 2cf699c5: am aeb34f1a: am 161314fa: am 358af143: am 81adda25: Merge "Always...

am 2cf699c5: am aeb34f1a: am 161314fa: am 358af143: am 81adda25: Merge "Always create nodes for views backed by an adapter." into mnc-dev

* commit '2cf699c5':
  Always create nodes for views backed by an adapter.
parents 2ec5c5cc 2cf699c5
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
@@ -1559,13 +1559,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);
    }

@@ -2411,18 +2404,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);