Loading core/java/android/view/View.java +22 −18 Original line number Diff line number Diff line Loading @@ -16212,7 +16212,27 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (fg != null && isVisible != fg.isVisible()) { fg.setVisible(isVisible, false); } notifyAutofillManagerViewVisibilityChanged(isVisible); if (isVisible != oldVisible) { if (isAccessibilityPane()) { notifyViewAccessibilityStateChangedIfNeeded(isVisible ? AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED : AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED); } notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible); if (!getSystemGestureExclusionRects().isEmpty()) { postUpdate(this::updateSystemGestureExclusionRects); } if (!collectPreferKeepClearRects().isEmpty()) { postUpdate(this::updateKeepClearRects); } } } private void notifyAutofillManagerViewVisibilityChanged(boolean isVisible) { if (isAutofillable()) { AutofillManager afm = getAutofillManager(); Loading @@ -16236,24 +16256,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } } } if (isVisible != oldVisible) { if (isAccessibilityPane()) { notifyViewAccessibilityStateChangedIfNeeded(isVisible ? AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED : AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED); } notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible); if (!getSystemGestureExclusionRects().isEmpty()) { postUpdate(this::updateSystemGestureExclusionRects); } if (!collectPreferKeepClearRects().isEmpty()) { postUpdate(this::updateKeepClearRects); } } } /** Loading Loading @@ -22128,6 +22130,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, // Invoking onVisibilityAggregated directly here since the subtree // will also receive detached from window onVisibilityAggregated(false); } else { notifyAutofillManagerViewVisibilityChanged(false); } } } Loading
core/java/android/view/View.java +22 −18 Original line number Diff line number Diff line Loading @@ -16212,7 +16212,27 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (fg != null && isVisible != fg.isVisible()) { fg.setVisible(isVisible, false); } notifyAutofillManagerViewVisibilityChanged(isVisible); if (isVisible != oldVisible) { if (isAccessibilityPane()) { notifyViewAccessibilityStateChangedIfNeeded(isVisible ? AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED : AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED); } notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible); if (!getSystemGestureExclusionRects().isEmpty()) { postUpdate(this::updateSystemGestureExclusionRects); } if (!collectPreferKeepClearRects().isEmpty()) { postUpdate(this::updateKeepClearRects); } } } private void notifyAutofillManagerViewVisibilityChanged(boolean isVisible) { if (isAutofillable()) { AutofillManager afm = getAutofillManager(); Loading @@ -16236,24 +16256,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } } } if (isVisible != oldVisible) { if (isAccessibilityPane()) { notifyViewAccessibilityStateChangedIfNeeded(isVisible ? AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_APPEARED : AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED); } notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible); if (!getSystemGestureExclusionRects().isEmpty()) { postUpdate(this::updateSystemGestureExclusionRects); } if (!collectPreferKeepClearRects().isEmpty()) { postUpdate(this::updateKeepClearRects); } } } /** Loading Loading @@ -22128,6 +22130,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, // Invoking onVisibilityAggregated directly here since the subtree // will also receive detached from window onVisibilityAggregated(false); } else { notifyAutofillManagerViewVisibilityChanged(false); } } }