mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
Make showing back for bouncer only rely on back disable status, not home and recents as well.
Fix: 260655218 Test: manual. Create second user, switch to three button nav, set lockscreen password, lock and show IME on lockscreen. Change-Id: I1d874196afc24d5bae86d525a81ae199152fc750
This commit is contained in:
@@ -90,13 +90,8 @@ public class TaskbarKeyguardController implements TaskbarControllers.LoggableTas
|
||||
*/
|
||||
private void updateIconsForBouncer() {
|
||||
boolean disableBack = (mKeyguardSysuiFlags & SYSUI_STATE_BACK_DISABLED) != 0;
|
||||
boolean disableRecent = (mKeyguardSysuiFlags & SYSUI_STATE_OVERVIEW_DISABLED) != 0;
|
||||
boolean disableHome = (mKeyguardSysuiFlags & SYSUI_STATE_HOME_DISABLED) != 0;
|
||||
boolean onlyBackEnabled = !disableBack && disableRecent && disableHome;
|
||||
|
||||
boolean showBackForBouncer = onlyBackEnabled &&
|
||||
mKeyguardManager.isDeviceSecure() &&
|
||||
mBouncerShowing;
|
||||
boolean showBackForBouncer =
|
||||
!disableBack && mKeyguardManager.isDeviceSecure() && mBouncerShowing;
|
||||
mNavbarButtonsViewController.setBackForBouncer(showBackForBouncer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user