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

Commit 2a7091d8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fine tune performance for notifyContentCapture()" into rvc-dev

parents b4d5aef6 2689c369
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -14684,19 +14684,21 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                }
            }
        }
        if (isAccessibilityPane()) {
        if (isVisible != oldVisible) {
            if (isAccessibilityPane()) {
                notifyViewAccessibilityStateChangedIfNeeded(isVisible
                        ? AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED
                        : AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED);
            }
        }
            notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible);
        if (!getSystemGestureExclusionRects().isEmpty() && isVisible != oldVisible) {
            if (!getSystemGestureExclusionRects().isEmpty()) {
                postUpdateSystemGestureExclusionRects();
            }
        }
    }
    /**
     * Returns the current visibility of the window this view is attached to