Fix tap-through during screenshot dismissal

We were removing the onComputeInternalInsetsListener at the start
of the dismissal animation, which broke tap-through during
dismissal. We remove the listener after dismissal anyway, so just
wait until then.

Bug: 191981223
Bug: 191981223
Test: manual (helps to have window animation scale (slow) on)
Change-Id: I4cbf9376f8646904ed991aec55faeb271826684a
This commit is contained in:
Miranda Kephart
2021-06-24 13:25:48 -04:00
parent a22342e871
commit 2b76f60f22

View File

@@ -865,10 +865,6 @@ public class ScreenshotView extends FrameLayout implements
}
private void animateDismissal(Animator dismissAnimation) {
if (DEBUG_WINDOW) {
Log.d(TAG, "removing OnComputeInternalInsetsListener");
}
getViewTreeObserver().removeOnComputeInternalInsetsListener(this);
mDismissAnimation = dismissAnimation;
mDismissAnimation.addListener(new AnimatorListenerAdapter() {
private boolean mCancelled = false;