Fix switching "Swipe down from Show notification" to "Pull screen

into reach" will not able to trigger it at first time

Update notifyShortcutStateChanged() when swipe down from Show
notification settings changed.

Bug: 198395550

Test: manual switch shortcut FAB to test
Test: Test: atest WMShellUnitTests
Change-Id: Ic550586c651a0a6c61f7f672afffbcb83ccf25ff
This commit is contained in:
Jason Chang
2021-09-02 23:55:27 +08:00
parent ad0aaac0fe
commit 337ccfd36a

View File

@@ -537,6 +537,7 @@ public class OneHandedController implements RemoteCallable<OneHandedController>,
mOneHandedSettingsUtil.getSettingsSwipeToNotificationEnabled(
mContext.getContentResolver(), mUserId);
setSwipeToNotificationEnabled(enabled);
notifyShortcutStateChanged(mState.getState());
mOneHandedUiEventLogger.writeEvent(enabled
? OneHandedUiEventLogger.EVENT_ONE_HANDED_SETTINGS_SHOW_NOTIFICATION_ENABLED_ON