Merge "Use isAggregatedVisible for pane events" into tm-dev

This commit is contained in:
Sally Yuen
2022-02-22 19:25:08 +00:00
committed by Android (Google) Code Review

View File

@@ -14173,7 +14173,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
&& isAccessibilityPane()) {
// If the pane isn't visible, content changed events are sufficient unless we're
// reporting that the view just disappeared
if ((getVisibility() == VISIBLE)
if ((isAggregatedVisible())
|| (changeType == AccessibilityEvent.CONTENT_CHANGE_TYPE_PANE_DISAPPEARED)) {
final AccessibilityEvent event = AccessibilityEvent.obtain();
onInitializeAccessibilityEvent(event);