diff --git a/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java b/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java index e821e06180..fa37901f27 100644 --- a/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java +++ b/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java @@ -561,7 +561,7 @@ public class RecentsAnimationDeviceState implements return false; } - if (mIsOneHandedModeEnabled || mIsSwipeToNotificationEnabled) { + if (mIsOneHandedModeEnabled) { final Info displayInfo = mDisplayController.getInfo(); return (mRotationTouchHelper.touchInOneHandedModeRegion(ev) && displayInfo.rotation != Surface.ROTATION_90 diff --git a/quickstep/src/com/android/quickstep/inputconsumers/OneHandedModeInputConsumer.java b/quickstep/src/com/android/quickstep/inputconsumers/OneHandedModeInputConsumer.java index 8d9c524a57..bc209027e8 100644 --- a/quickstep/src/com/android/quickstep/inputconsumers/OneHandedModeInputConsumer.java +++ b/quickstep/src/com/android/quickstep/inputconsumers/OneHandedModeInputConsumer.java @@ -147,12 +147,10 @@ public class OneHandedModeInputConsumer extends DelegateInputConsumer { } private void onStartGestureDetected() { - if (mDeviceState.isOneHandedModeEnabled()) { - if (!mDeviceState.isOneHandedModeActive()) { - SystemUiProxy.INSTANCE.get(mContext).startOneHandedMode(); - } - } else if (mDeviceState.isSwipeToNotificationEnabled()) { + if (mDeviceState.isSwipeToNotificationEnabled()) { SystemUiProxy.INSTANCE.get(mContext).expandNotificationPanel(); + } else if (!mDeviceState.isOneHandedModeActive()) { + SystemUiProxy.INSTANCE.get(mContext).startOneHandedMode(); } }