Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ce38313 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make lockscreen user list closeable via keyboard."

parents 5e43433e 3a8c35e3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4475,6 +4475,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
            animateCollapsePanels();
            return true;
        }
        if (mKeyguardUserSwitcher.hideIfNotSimple(true)) {
            return true;
        }
        return false;
    }

+6 −3
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ public class KeyguardUserSwitcher {
        }
    }

    private void hide(boolean animate) {
    private boolean hide(boolean animate) {
        if (mUserSwitcher != null && mUserSwitcherContainer.getVisibility() == View.VISIBLE) {
            cancelAnimations();
            if (animate) {
@@ -137,7 +137,9 @@ public class KeyguardUserSwitcher {
                mUserSwitcherContainer.setVisibility(View.GONE);
            }
            mStatusBarView.setKeyguardUserSwitcherShowing(false, animate);
            return true;
        }
        return false;
    }

    private void cancelAnimations() {
@@ -223,10 +225,11 @@ public class KeyguardUserSwitcher {
        }
    }

    public void hideIfNotSimple(boolean animate) {
    public boolean hideIfNotSimple(boolean animate) {
        if (mUserSwitcherContainer != null && !mUserSwitcherController.isSimpleUserSwitcher()) {
            hide(animate);
            return hide(animate);
        }
        return false;
    }

    boolean isAnimating() {