summaryrefslogtreecommitdiff
path: root/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2016-10-12 16:41:28 -0700
committerAdrian Roos <roosa@google.com>2016-10-17 18:31:49 +0000
commitdb327e9f5976f8f184ae105e672ea4bda4a0af48 (patch)
tree4e1e9a135d1ec9efc8892d9f3f401feddcc33cc5 /packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
parentac276482552f88d8be122d3b194f0cb3fbb793e2 (diff)
Keyguard: Clean up security message display
- Remove timinig out of messages. This is no longer necessary because we do not show the owner and charging info in that area anymore. - Remove the "important" parameter, which was equivalent to clearing the message if false. Change-Id: I5fae5432724ad90a68f53f678f933c4a15dc6e9b Fixes: 28270749 Test: manual; reboot device, swipe up, verify message doesn't disappear after 5s
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
index d48cc9479c95..839d3cec5e96 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
@@ -92,7 +92,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
color = info.getIconTint();
}
}
- mSecurityMessageDisplay.setMessage(msg, true);
+ mSecurityMessageDisplay.setMessage(msg);
mSimImageView.setImageTintList(ColorStateList.valueOf(color));
}
}
@@ -141,7 +141,6 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
protected void onFinishInflate() {
super.onFinishInflate();
- mSecurityMessageDisplay.setTimeout(0); // don't show ownerinfo/charging status by default
if (mEcaView instanceof EmergencyCarrierArea) {
((EmergencyCarrierArea) mEcaView).setCarrierTextVisible(true);
}
@@ -252,7 +251,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
if (entry.length() < 4) {
// otherwise, display a message to the user, and don't submit.
- mSecurityMessageDisplay.setMessage(R.string.kg_invalid_sim_pin_hint, true);
+ mSecurityMessageDisplay.setMessage(R.string.kg_invalid_sim_pin_hint);
resetPasswordText(true /* animate */, true /* announce */);
mCallback.userActivity();
return;
@@ -284,13 +283,13 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
} else {
// show message
mSecurityMessageDisplay.setMessage(
- getPinPasswordErrorMessage(attemptsRemaining), true);
+ getPinPasswordErrorMessage(attemptsRemaining));
}
} else {
// "PIN operation failed!" - no idea what this was and no way to
// find out. :/
mSecurityMessageDisplay.setMessage(getContext().getString(
- R.string.kg_password_pin_failed), true);
+ R.string.kg_password_pin_failed));
}
if (DEBUG) Log.d(LOG_TAG, "verifyPasswordAndUnlock "
+ " CheckSimPin.onSimCheckResponse: " + result