diff options
author | Kevin Chyn <kchyn@google.com> | 2017-08-29 19:04:25 -0700 |
---|---|---|
committer | Kevin Chyn <kchyn@google.com> | 2017-08-30 02:09:33 +0000 |
commit | e01c5e1afbe319a72e075eb0e57d421b137a2bbb (patch) | |
tree | c5816f177bd1e42dc12128531f3c8ba41d354938 /packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java | |
parent | 4531b360315e347f0af7f5a077423bb1f1daaf1a (diff) |
Fix "too many attempts" pluralization on bouncer
Bug: 35027821
Test: manual test of pin/pattern/pass authentication
Change-Id: I67fcd0977554dbd1b0394e4210d9ee7e668b77d9
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java index 3c9a6b9dcdec..ec5f356a1a55 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java @@ -332,8 +332,9 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit @Override public void onTick(long millisUntilFinished) { final int secondsRemaining = (int) Math.round(millisUntilFinished / 1000.0); - mSecurityMessageDisplay.formatMessage( - R.string.kg_too_many_failed_attempts_countdown, secondsRemaining); + mSecurityMessageDisplay.setMessage(mContext.getResources().getQuantityString( + R.plurals.kg_too_many_failed_attempts_countdown, + secondsRemaining, secondsRemaining)); } @Override |