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

Change-Id: I0904cd567a4e4f1a5ed320231d12a830ba3e1300
This commit is contained in:
TreeHugger Robot
2020-04-10 04:53:53 +00:00
committed by Automerger Merge Worker

View File

@@ -14684,19 +14684,21 @@ 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) {
if (!getSystemGestureExclusionRects().isEmpty()) {
postUpdateSystemGestureExclusionRects(); postUpdateSystemGestureExclusionRects();
} }
} }
}
/** /**
* Returns the current visibility of the window this view is attached to * Returns the current visibility of the window this view is attached to