Show carrier name on pin lock screen
When user has DSDS and both sims are locked, the pin lock screen doesn't show which carrier is requiring the pin. b/128994337 tracks fixing the "Card 1" name on turning on the phone. Test: manual Bug: 125290365 Change-Id: I8c6b6ecd6b3c1e5f111ebbb1ceabbfb2b083ed0d
This commit is contained in:
@@ -99,13 +99,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
|
||||
esimButton.setVisibility(isEsimLocked ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
private void showDefaultMessage() {
|
||||
if (mRemainingAttempts >= 0) {
|
||||
mSecurityMessageDisplay.setMessage(getPinPasswordErrorMessage(
|
||||
mRemainingAttempts, true));
|
||||
return;
|
||||
}
|
||||
|
||||
private void setLockedSimMessage() {
|
||||
boolean isEsimLocked = KeyguardEsimArea.isEsimLocked(mContext, mSubId);
|
||||
int count = TelephonyManager.getDefault().getSimCount();
|
||||
Resources rez = getResources();
|
||||
@@ -122,13 +116,20 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
|
||||
color = info.getIconTint();
|
||||
}
|
||||
}
|
||||
|
||||
if (isEsimLocked) {
|
||||
msg = rez.getString(R.string.kg_sim_lock_esim_instructions, msg);
|
||||
}
|
||||
|
||||
mSecurityMessageDisplay.setMessage(msg);
|
||||
mSimImageView.setImageTintList(ColorStateList.valueOf(color));
|
||||
}
|
||||
|
||||
private void showDefaultMessage() {
|
||||
setLockedSimMessage();
|
||||
if (mRemainingAttempts >= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Sending empty PIN here to query the number of remaining PIN attempts
|
||||
new CheckSimPin("", mSubId) {
|
||||
@@ -137,8 +138,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
|
||||
" attemptsRemaining=" + attemptsRemaining);
|
||||
if (attemptsRemaining >= 0) {
|
||||
mRemainingAttempts = attemptsRemaining;
|
||||
mSecurityMessageDisplay.setMessage(
|
||||
getPinPasswordErrorMessage(attemptsRemaining, true));
|
||||
setLockedSimMessage();
|
||||
}
|
||||
}
|
||||
}.start();
|
||||
|
||||
Reference in New Issue
Block a user