OSDN Git Service

Fix intercepting touch events for guts
authordongwan0605.kim <dongwan0605.kim@lge.com>
Sun, 6 May 2018 08:40:23 +0000 (17:40 +0900)
committerSelim Cinek <cinek@google.com>
Tue, 8 May 2018 01:55:22 +0000 (01:55 +0000)
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

packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java

index 27fa48a..8adf4bc 100644 (file)
@@ -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();