Do not show bouncer field when bouncer is hidden
Fixes: 131187491 Test: add locked sim card, go to AOD Test: unlock sim card, look at lock screen Test: swipe up to unlock, enter wrong pattern Change-Id: I6c4ad61879c71734e198590b39f7b25cc127198e
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user