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
This commit is contained in:
Steve Elliott
2023-05-30 17:37:30 -04:00
parent 0f4c76e875
commit 6e4a8e0161

View File

@@ -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 */,