Add support for saving the preferred input side for the bouncer
- Preferred bouncer input side is saved as a setting, if this value is not set, then the following applies: 1. For devices with config_enableBouncerUserSwitcher (tablets), we default to the right side. 2. For devices with can_use_one_handed_bouncer set to true in config and config_enableBouncerUserSwitcher set to false, we default to left side input (foldables) - When SIM auth method is active, then bouncer switcher will not be visible - Side by side mode is supported whenever user switcher is visible, or when can_use_one_handed_bouncer is set in the config and auth method is not password. - Adds falsing support for double taps to switch input sides on the bouncer. Fixes: 375206096 Fixes: 375206804 Test: verified manually, 1. Use a foldable in unfolded mode 2. set auth method to pin/pattern 3. go to bouncer, input should be on the left side 4. double tap on the empty side of the bouncer, input should move to that side 5. keep doing this for a few times, falsing should not reject double taps and move back to the lockscreen 6. leave the input on the right side of the bouncer 7. unlock the device and come back, it should still be on the right side verified manually on a tablet 1. Go to bouncer with auth method as pin/pattern/password 2. user switcher should be shown on the left side and bouncer input on the right side 3. repeat the above steps and verify input side setting is saved. Flag: com.android.systemui.compose_bouncer Change-Id: I880f8cde571a2c9dfef27f7f8e80d112a8898303
Loading
Please register or sign in to comment