Merge "Revert "Revert "2/ Resolve gesture one handed conflicts swipe up..."" into sc-dev
This commit is contained in:
@@ -517,7 +517,8 @@ public class TouchInteractionService extends Service implements PluginListener<O
|
|||||||
}
|
}
|
||||||
mRotationTouchHelper.setOrientationTransformIfNeeded(event);
|
mRotationTouchHelper.setOrientationTransformIfNeeded(event);
|
||||||
|
|
||||||
if (mRotationTouchHelper.isInSwipeUpTouchRegion(event)) {
|
if (!mDeviceState.isOneHandedModeActive()
|
||||||
|
&& mRotationTouchHelper.isInSwipeUpTouchRegion(event)) {
|
||||||
if (TestProtocol.sDebugTracing) {
|
if (TestProtocol.sDebugTracing) {
|
||||||
Log.d(TestProtocol.NO_SWIPE_TO_HOME,
|
Log.d(TestProtocol.NO_SWIPE_TO_HOME,
|
||||||
"TouchInteractionService.onInputEvent:isInSwipeUpTouchRegion");
|
"TouchInteractionService.onInputEvent:isInSwipeUpTouchRegion");
|
||||||
@@ -546,8 +547,7 @@ public class TouchInteractionService extends Service implements PluginListener<O
|
|||||||
InputConsumer.NO_OP, mInputMonitorCompat,
|
InputConsumer.NO_OP, mInputMonitorCompat,
|
||||||
mDeviceState,
|
mDeviceState,
|
||||||
event);
|
event);
|
||||||
} else if (mDeviceState.canTriggerOneHandedAction(event)
|
} else if (mDeviceState.canTriggerOneHandedAction(event)) {
|
||||||
&& !mDeviceState.isOneHandedModeActive()) {
|
|
||||||
// Consume gesture event for triggering one handed feature.
|
// Consume gesture event for triggering one handed feature.
|
||||||
mUncheckedConsumer = new OneHandedModeInputConsumer(this, mDeviceState,
|
mUncheckedConsumer = new OneHandedModeInputConsumer(this, mDeviceState,
|
||||||
InputConsumer.NO_OP, mInputMonitorCompat);
|
InputConsumer.NO_OP, mInputMonitorCompat);
|
||||||
|
|||||||
Reference in New Issue
Block a user