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

This commit is contained in:
TreeHugger Robot
2020-04-10 04:42:58 +00:00
committed by Android (Google) Code Review

View File

@@ -14684,17 +14684,19 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
} }
} }
} }
if (isAccessibilityPane()) {
if (isVisible != oldVisible) { if (isVisible != oldVisible) {
if (isAccessibilityPane()) {
notifyViewAccessibilityStateChangedIfNeeded(isVisible notifyViewAccessibilityStateChangedIfNeeded(isVisible
? AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED ? AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED
: AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED); : AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED);
} }
}
notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible); notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible);
if (!getSystemGestureExclusionRects().isEmpty() && isVisible != oldVisible) {
postUpdateSystemGestureExclusionRects(); if (!getSystemGestureExclusionRects().isEmpty()) {
postUpdateSystemGestureExclusionRects();
}
} }
} }