Loading quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -561,7 +561,7 @@ public class RecentsAnimationDeviceState implements return false; return false; } } if (mIsOneHandedModeEnabled || mIsSwipeToNotificationEnabled) { if (mIsOneHandedModeEnabled) { final Info displayInfo = mDisplayController.getInfo(); final Info displayInfo = mDisplayController.getInfo(); return (mRotationTouchHelper.touchInOneHandedModeRegion(ev) return (mRotationTouchHelper.touchInOneHandedModeRegion(ev) && displayInfo.rotation != Surface.ROTATION_90 && displayInfo.rotation != Surface.ROTATION_90 Loading quickstep/src/com/android/quickstep/inputconsumers/OneHandedModeInputConsumer.java +3 −5 Original line number Original line Diff line number Diff line Loading @@ -147,12 +147,10 @@ public class OneHandedModeInputConsumer extends DelegateInputConsumer { } } private void onStartGestureDetected() { private void onStartGestureDetected() { if (mDeviceState.isOneHandedModeEnabled()) { if (mDeviceState.isSwipeToNotificationEnabled()) { if (!mDeviceState.isOneHandedModeActive()) { SystemUiProxy.INSTANCE.get(mContext).startOneHandedMode(); } } else if (mDeviceState.isSwipeToNotificationEnabled()) { SystemUiProxy.INSTANCE.get(mContext).expandNotificationPanel(); SystemUiProxy.INSTANCE.get(mContext).expandNotificationPanel(); } else if (!mDeviceState.isOneHandedModeActive()) { SystemUiProxy.INSTANCE.get(mContext).startOneHandedMode(); } } } } Loading Loading
quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -561,7 +561,7 @@ public class RecentsAnimationDeviceState implements return false; return false; } } if (mIsOneHandedModeEnabled || mIsSwipeToNotificationEnabled) { if (mIsOneHandedModeEnabled) { final Info displayInfo = mDisplayController.getInfo(); final Info displayInfo = mDisplayController.getInfo(); return (mRotationTouchHelper.touchInOneHandedModeRegion(ev) return (mRotationTouchHelper.touchInOneHandedModeRegion(ev) && displayInfo.rotation != Surface.ROTATION_90 && displayInfo.rotation != Surface.ROTATION_90 Loading
quickstep/src/com/android/quickstep/inputconsumers/OneHandedModeInputConsumer.java +3 −5 Original line number Original line Diff line number Diff line Loading @@ -147,12 +147,10 @@ public class OneHandedModeInputConsumer extends DelegateInputConsumer { } } private void onStartGestureDetected() { private void onStartGestureDetected() { if (mDeviceState.isOneHandedModeEnabled()) { if (mDeviceState.isSwipeToNotificationEnabled()) { if (!mDeviceState.isOneHandedModeActive()) { SystemUiProxy.INSTANCE.get(mContext).startOneHandedMode(); } } else if (mDeviceState.isSwipeToNotificationEnabled()) { SystemUiProxy.INSTANCE.get(mContext).expandNotificationPanel(); SystemUiProxy.INSTANCE.get(mContext).expandNotificationPanel(); } else if (!mDeviceState.isOneHandedModeActive()) { SystemUiProxy.INSTANCE.get(mContext).startOneHandedMode(); } } } } Loading