From b2ec24db41ad2a292c6af965a049675764bdd2d1 Mon Sep 17 00:00:00 2001 From: William Xiao Date: Thu, 30 Mar 2023 16:10:03 -0700 Subject: [PATCH] Fix bouncer flickering on dream swipe up end If the user swipes up on the dream to show the bouncer but releases before the gestures has gone far or fast enough to show the bouncer, the bouncer may flicker into view due to this reset call. This reset call should not be needed as the BouncerSwipeTouchHandler continues the gesture's motion after release to either fully expand or hide the bouncer. Once the bouncer animates back to fully hidden, PrimaryBouncerInteractor hides and dispatch state as needed. Bug: 275600358 Test: atest BouncerSwipeTouchHandlerTest (swipe then release is covered by existing unit tests) Change-Id: Ieef85004c4ecf7e114204c83ae72438dbcf8bb88 Change-Id: I5849092c18393baf89ba0bb96de8a4b435daee55 --- .../systemui/dreams/touch/BouncerSwipeTouchHandler.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/dreams/touch/BouncerSwipeTouchHandler.java b/packages/SystemUI/src/com/android/systemui/dreams/touch/BouncerSwipeTouchHandler.java index 2ea7bce664526..570132e111ebf 100644 --- a/packages/SystemUI/src/com/android/systemui/dreams/touch/BouncerSwipeTouchHandler.java +++ b/packages/SystemUI/src/com/android/systemui/dreams/touch/BouncerSwipeTouchHandler.java @@ -303,10 +303,6 @@ public class BouncerSwipeTouchHandler implements DreamTouchHandler { } flingToExpansion(verticalVelocity, expansion); - - if (expansion == KeyguardBouncerConstants.EXPANSION_HIDDEN) { - mCurrentScrimController.reset(); - } break; default: mVelocityTracker.addMovement(motionEvent);