Migrate trigger logic to fullfill new UI changes for
One-handed mode settings. According to new key visual changes for One-handed mode, modify the trigger condition to reflect the changes. Bug: 175851783 Test: manual Test: atest WMShellUnitTests Change-Id: I4d734b31cafd5ce884010642b5e613c3deadfb20
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user