From 7657fa90b5ef1bed7e31a0d56d5ff946e518b6f3 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 10 Mar 2022 03:23:22 +0000 Subject: [PATCH] Revert "Bouncer: Add title for each auth screen." This reverts commit 22941ed02d475d42c213eab6a7352969dd3e03c2. Reason for revert: title is shown when viewcontroller onPause is called. We might want to set the title in a more specific place Change-Id: I9a1618aa1961f5a2a37de92cb5ecc87bebcbbdeb --- .../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, 9 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPasswordViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPasswordViewController.java index 28f21af5b56b0..0529cdbcbb139 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(R.string.keyguard_enter_your_password); + mMessageAreaController.setMessage(""); 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 7635f919567a9..41f92407a6838 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(R.string.keyguard_enter_your_pattern); + mMessageAreaController.setMessage(""); } 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 a9c03d1ac08ea..8de4e7b557f3f 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPinBasedInputViewController.java @@ -132,6 +132,5 @@ public abstract class KeyguardPinBasedInputViewController