Merge "Fine tune performance for notifyContentCapture()" into rvc-dev am: 2a7091d896 am: 3051a0a8d9

Change-Id: I1efce47734571988ded787d0785966763bb960bf
This commit is contained in:
TreeHugger Robot
2020-04-10 05:07:59 +00:00
committed by Automerger Merge Worker

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
? AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED
: AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED);
}
}
notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible);
if (!getSystemGestureExclusionRects().isEmpty() && isVisible != oldVisible) {
postUpdateSystemGestureExclusionRects();
notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible);
if (!getSystemGestureExclusionRects().isEmpty()) {
postUpdateSystemGestureExclusionRects();
}
}
}