From 22941ed02d475d42c213eab6a7352969dd3e03c2 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 3 Mar 2022 21:31:09 +0000 Subject: [PATCH] Bouncer: Add title for each auth screen. On reset state in the view controller, set the security message to be the default text. It seems like this copy already exists. Bug: b/218833792 Test: Manual test on multiple devices Change-Id: I5d704255622864a8593ce1b31747a36ec95224bb --- .../android/keyguard/KeyguardPasswordViewController.java | 2 +- .../com/android/keyguard/KeyguardPatternViewController.java | 2 +- .../keyguard/KeyguardPinBasedInputViewController.java | 1 + .../src/com/android/keyguard/KeyguardPinViewController.java | 6 ------ .../android/keyguard/KeyguardPatternViewControllerTest.kt | 2 +- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPasswordViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPasswordViewController.java index 0529cdbcbb139..28f21af5b56b0 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPasswordViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPasswordViewController.java @@ -183,7 +183,7 @@ public class KeyguardPasswordViewController @Override void resetState() { mPasswordEntry.setTextOperationUser(UserHandle.of(KeyguardUpdateMonitor.getCurrentUser())); - mMessageAreaController.setMessage(""); + mMessageAreaController.setMessage(R.string.keyguard_enter_your_password); final boolean wasDisabled = mPasswordEntry.isEnabled(); mView.setPasswordEntryEnabled(true); mView.setPasswordEntryInputEnabled(true); diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java index 41f92407a6838..7635f919567a9 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java @@ -358,7 +358,7 @@ public class KeyguardPatternViewController } private void displayDefaultSecurityMessage() { - mMessageAreaController.setMessage(""); + mMessageAreaController.setMessage(R.string.keyguard_enter_your_pattern); } private void handleAttemptLockout(long elapsedRealtimeDeadline) { diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java index 8de4e7b557f3f..a9c03d1ac08ea 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java @@ -132,5 +132,6 @@ public abstract class KeyguardPinBasedInputViewController