From 2b76f60f222529b2f3061152581e11c63e238384 Mon Sep 17 00:00:00 2001 From: Miranda Kephart Date: Thu, 24 Jun 2021 13:25:48 -0400 Subject: [PATCH] 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 --- .../src/com/android/systemui/screenshot/ScreenshotView.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotView.java b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotView.java index 1426709350d40..76b9b3064e8be 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotView.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotView.java @@ -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;