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

Change-Id: Id0d964b22d536f90f54ec6956dc31f819870c704
This commit is contained in:
TreeHugger Robot
2020-04-10 04:49:33 +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();
}
}
}