Fix unable to swipe up to exit one-handed mode under

2 button navigation

Remove redundant condition checking when consuming One-handed mode
gesture events.

Bug: 193761450

Test: manual
Test: atest WMShellUnitTests
Change-Id: Id4687cb579c17d7de1a08b32c003e656cbbce820
This commit is contained in:
Jason Chang 2021-07-16 18:55:08 +08:00
parent b68f4cdb0b
commit edc7917521
1 changed files with 1 additions and 2 deletions

View File

@ -564,8 +564,7 @@ public class TouchInteractionService extends Service implements PluginListener<O
} else {
mUncheckedConsumer = InputConsumer.NO_OP;
}
} else if (mDeviceState.canTriggerOneHandedAction(event)
&& !mDeviceState.isOneHandedModeActive()) {
} else if (mDeviceState.canTriggerOneHandedAction(event)) {
// Consume gesture event for triggering one handed feature.
mUncheckedConsumer = new OneHandedModeInputConsumer(this, mDeviceState,
InputConsumer.NO_OP, mInputMonitorCompat);