Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54d69965 authored by Bill Lin's avatar Bill Lin Committed by Android (Google) Code Review
Browse files

Merge "2/ Resolve gesture one handed conflicts swipe up recents" into sc-dev

parents cc67d728 789aa866
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -515,7 +515,8 @@ public class TouchInteractionService extends Service implements PluginListener<O
            }
            mRotationTouchHelper.setOrientationTransformIfNeeded(event);

            if (mRotationTouchHelper.isInSwipeUpTouchRegion(event)) {
            if (!mDeviceState.isOneHandedModeActive()
                    && mRotationTouchHelper.isInSwipeUpTouchRegion(event)) {
                if (TestProtocol.sDebugTracing) {
                    Log.d(TestProtocol.NO_SWIPE_TO_HOME,
                            "TouchInteractionService.onInputEvent:isInSwipeUpTouchRegion");
@@ -544,8 +545,7 @@ public class TouchInteractionService extends Service implements PluginListener<O
                            InputConsumer.NO_OP, mInputMonitorCompat,
                            mDeviceState,
                            event);
                } 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);