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

Commit 2a7de4eb authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am c896147c: am 9eae380b: am a9f28eea: Merge "Temporary detached views not...

am c896147c: am 9eae380b: am a9f28eea: Merge "Temporary detached views not properly reported to accessibility layer." into klp-dev

* commit 'c896147c':
  Temporary detached views not properly reported to accessibility layer.
parents d9ad63b9 c896147c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6742,6 +6742,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te

            scrap.dispatchStartTemporaryDetach();

            // The the accessibility state of the view may change while temporary
            // detached and we do not allow detached views to fire accessibility
            // events. So we are announcing that the subtree changed giving a chance
            // to clients holding on to a view in this subtree to refresh it.
            notifyViewAccessibilityStateChangedIfNeeded(
                    AccessibilityEvent.CONTENT_CHANGE_TYPE_SUBTREE);

            // Don't scrap views that have transient state.
            final boolean scrapHasTransientState = scrap.hasTransientState();
            if (scrapHasTransientState) {