From c4ddef4f4f7624adbb0070eb600f0791adabd4d5 Mon Sep 17 00:00:00 2001 From: "dongwan0605.kim" Date: Sun, 6 May 2018 17:40:23 +0900 Subject: [PATCH] Fix intercepting touch events for guts When guts are showing in keyguard, user's touch events could be intercepted by ActivatableNotificationView especially in notification header area. And then, user had to touch buttons in guts twice to operate. So, fix not to intercept touch events when guts are showing. Test: Lockscreen > Swipe EXPANDABLE notification and click snooze button > Try to click UNDO button or expand button in snooze layout. Change-Id: I7f36ca8f38c974561ea7585b4560fff8c2d634fb Fixes: 79354723 --- .../android/systemui/statusbar/ExpandableNotificationRow.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index 27fa48aee2163..8adf4bc3d5c29 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java @@ -2599,6 +2599,9 @@ public class ExpandableNotificationRow extends ActivatableNotificationView @Override protected boolean disallowSingleClick(MotionEvent event) { + if (areGutsExposed()) { + return false; + } float x = event.getX(); float y = event.getY(); NotificationHeaderView header = getVisibleNotificationHeader();