Merge "Migrate trigger logic to fullfill new UI changes for One-handed mode settings." into sc-dev
This commit is contained in:
commit
9bc712f267
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue