index 9c712a8be60..18fa6bbfba6 100755
--- a/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java
@@ -323,6 +323,17 @@ public abstract class KeyguardAbsKeyInputViewController<T extends KeyguardAbsKey
Log.d(TAG, "onResume");
/* @} */
mResumed = true;
+ if (KeyguardSecurityContainerController.mDeadLine > 0) {
+ Map<String, Object> arguments = new HashMap<>();
+ arguments.put("count", KeyguardSecurityContainerController.mDeadLine);
+ mMessageAreaController.setMessage(PluralsMessageFormatter.format(
+ mView.getResources(),
+ arguments,
+ R.string.kg_too_many_failed_attempts_countdown));
+ } else {
+ mMessageAreaController.setMessage("");
+ }
}
@Override
diff --git a/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java b/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java
index 9cd91d20d17..6da5ba4190b 100644
--- a/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java
@@ -319,6 +319,17 @@ public class KeyguardPatternViewController
public void onResume(int reason) {
super.onResume(reason);
mResumed = true;
+ if (KeyguardSecurityContainerController.mDeadLine > 0) {
+ Map<String, Object> arguments = new HashMap<>();
+ arguments.put("count", KeyguardSecurityContainerController.mDeadLine);
+ mMessageAreaController.setMessage(PluralsMessageFormatter.format(
+ mView.getResources(),
+ arguments,
+ R.string.kg_too_many_failed_attempts_countdown));
+ } else {
+ mMessageAreaController.setMessage("");
+ }
}
/* @} */
展讯A13 图案密码倒计时结束后还是之前字符串问题
最新推荐文章于 2023-12-06 09:40:34 发布