From 6e4a8e0161cd1ce11e8796d1243be90ef8f36ad8 Mon Sep 17 00:00:00 2001 From: Steve Elliott Date: Tue, 30 May 2023 17:37:30 -0400 Subject: [PATCH] Reset notification pressed state when show guts after bouncer Fixes: 233281914 Test: manual 1. Have side-fingerprint lock enabled 2. Have notifications present on lock screen 3. Long-press a notification Observe: Ripple animates away when bouncer is shown Change-Id: I363e233e912fc5dc870e0720e67c57dbd4f75781 --- .../statusbar/notification/row/NotificationGutsManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationGutsManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationGutsManager.java index 0c4b0927a9062..7dbca4276fccb 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationGutsManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationGutsManager.java @@ -552,6 +552,9 @@ public class NotificationGutsManager implements NotifGutsViewManager { Runnable r = () -> mMainHandler.post( () -> openGutsInternal(view, x, y, menuItem)); + // If the bouncer shows, it will block the TOUCH_UP event from reaching the notif, + // so explicitly mark it as unpressed here to reset the touch animation. + view.setPressed(false); mActivityStarter.executeRunnableDismissingKeyguard( r, null /* cancelAction */,