OSDN Git Service

Use unbatched inputeventreceiver, reduce touchslop
authorSiarhei Vishniakou <svv@google.com>
Wed, 29 May 2019 16:12:18 +0000 (09:12 -0700)
committerSiarhei Vishniakou <svv@google.com>
Wed, 29 May 2019 20:46:54 +0000 (13:46 -0700)
commitfaa8799621144e2ea2bda6a0cb7656a34e21da76
tree9db347f8c67a9227afe4f37edd8be3d20d54a4b7
parent54dbca30ed1f9954af3203a67155b2840af129b0
Use unbatched inputeventreceiver, reduce touchslop

To ensure gesture navigation has sufficient time to intercept gestures,
use unbatched inputreceiver, meaning that input events will be processed
immediately rather than on vsync boundaries.

Also, reduce touch slop to ensure that interception happens before the
app starts to react to the gesture.

Fix provided by michaelwr@.

Note: if the device is slow (for example, still executing first-boot
instructions), then the symptom can still be reproduced. However, once
the performance is good, then the issue is no longer observed.

Bug: 130352502
Test: open google maps and swipe from right and left. observe that the
map doesn't start moving before the back gesture icon appears.

Change-Id: I0696509c7f1cb0a0d2450080e0b61e2218a01140
packages/SystemUI/shared/src/com/android/systemui/shared/system/InputChannelCompat.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/EdgeBackGestureHandler.java