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
This commit is contained in:
committed by
Selim Cinek
parent
d24c5de834
commit
c4ddef4f4f
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user