Fix trackpad gesture not able to pull down notification
TouchInteractionService monitors motion events on the homescreen too. While we allow the motion event anywhere on the homescreen, they should not be intercepted by input consumers. As a byproduct, this fixes pulling up the all apps panel too. Bug: 255602235 Bug: 263200728 Test: manual Change-Id: I3e74c4476505d530ff6d3443342a5c36c6faa9e5
This commit is contained in:
1 parent
11a1d9be6a
commit
f55a513d72
5 files changed
+19
-11
No files matched your search
@@ -236,7 +236,8 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
|
||||
if (!mPassedPilferInputSlop) {
|
||||
// Cancel interaction in case of multi-touch interaction
|
||||
int ptrIdx = ev.getActionIndex();
|
||||
if (!mRotationTouchHelper.isInSwipeUpTouchRegion(ev, ptrIdx)) {
|
||||
if (!mRotationTouchHelper.isInSwipeUpTouchRegion(ev, ptrIdx,
|
||||
mActivityInterface)) {
|
||||
forceCancelGesture(ev);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user