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

Commit 3b630f50 authored by Hiroki Sato's avatar Hiroki Sato
Browse files

Fix typo of VRI#mSendingAccessibilityWindowContentChange

Bug: 143889012
Bug: 277305460
Test: build
Change-Id: I36798e45603fd75c91fea5b4ca6b17e23bf9b070
parent 80fedbce
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -807,7 +807,7 @@ public final class ViewRootImpl implements ViewParent,
    final HighContrastTextManager mHighContrastTextManager;

    SendWindowContentChangedAccessibilityEvent mSendWindowContentChangedAccessibilityEvent;
    boolean mSendingAccessibilityWIndowContentChange = false;
    boolean mSendingAccessibilityWindowContentChange = false;

    HashSet<View> mTempHashSet;

@@ -9872,7 +9872,7 @@ public final class ViewRootImpl implements ViewParent,
            postSendWindowContentChangedCallback(source, changeType);
            return;
        }
        if (mSendingAccessibilityWIndowContentChange) {
        if (mSendingAccessibilityWindowContentChange) {
            // This allows re-entering this method.
            // Some apps update views during an event dispatch, which triggers another a11y event.
            // In order to avoid an infinite loop, postpone second event dispatch.
@@ -9884,11 +9884,11 @@ public final class ViewRootImpl implements ViewParent,
                new AccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED);
        event.setContentChangeTypes(changeType);
        event.setAction(mAccessibilityManager.getPerformingAction());
        mSendingAccessibilityWIndowContentChange = true;
        mSendingAccessibilityWindowContentChange = true;
        try {
            source.sendAccessibilityEventUnchecked(event);
        } finally {
            mSendingAccessibilityWIndowContentChange = false;
            mSendingAccessibilityWindowContentChange = false;
        }
    }