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

Commit a2395795 authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Merge "Do not show bouncer field when bouncer is hidden" into qt-dev...

Merge "Merge "Do not show bouncer field when bouncer is hidden" into qt-dev am: 8bf9743b" into qt-dev-plus-aosp
am: 19bf383f

Change-Id: I141c17beac0d4fd25bb5fffe0000fab526a2ef0e
parents c0e1b13b 19bf383f
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -59,14 +59,22 @@ public class KeyguardMessageArea extends TextView implements SecurityMessageDisp
    private ColorStateList mDefaultColorState;
    private CharSequence mMessage;
    private ColorStateList mNextMessageColorState = ColorStateList.valueOf(DEFAULT_COLOR);
    private boolean mBouncerVisible;

    private KeyguardUpdateMonitorCallback mInfoCallback = new KeyguardUpdateMonitorCallback() {
        public void onFinishedGoingToSleep(int why) {
            setSelected(false);
        };
        }

        public void onStartedWakingUp() {
            setSelected(true);
        };
        }

        @Override
        public void onKeyguardBouncerChanged(boolean bouncer) {
            mBouncerVisible = bouncer;
            update();
        }
    };

    public KeyguardMessageArea(Context context) {
@@ -188,7 +196,7 @@ public class KeyguardMessageArea extends TextView implements SecurityMessageDisp

    private void update() {
        CharSequence status = mMessage;
        setVisibility(TextUtils.isEmpty(status) ? INVISIBLE : VISIBLE);
        setVisibility(TextUtils.isEmpty(status) || !mBouncerVisible ? INVISIBLE : VISIBLE);
        setText(status);
        ColorStateList colorState = mDefaultColorState;
        if (mNextMessageColorState.getDefaultColor() != DEFAULT_COLOR) {