Merge "Notify content capture on detach before setting attachInfo to null." into sc-qpr1-dev

This commit is contained in:
Julian Odell
2021-09-29 04:55:18 +00:00
committed by Android (Google) Code Review

View File

@@ -20830,13 +20830,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
mPrivateFlags &= ~PFLAG_SCROLL_CONTAINER_ADDED;
}
notifyAppearedOrDisappearedForContentCaptureIfNeeded(false);
mAttachInfo = null;
if (mOverlay != null) {
mOverlay.getOverlayView().dispatchDetachedFromWindow();
}
notifyEnterOrExitForAutoFillIfNeeded(false);
notifyAppearedOrDisappearedForContentCaptureIfNeeded(false);
}
/**