From 608a153abc3b66b9bf79f3ecb90cffa45337dc1a Mon Sep 17 00:00:00 2001 From: Peter Kalauskas Date: Tue, 6 Apr 2021 23:38:40 +0000 Subject: [PATCH] Revert "Hide keyguard lock icon when QS user icon enabled" This reverts commit 436f42bd49e957fe7021557ac5ca4745963e634c. Bug: 184201737 Reason for revert: No longer needed with new layout. See b/184201737 Change-Id: I7350fcf7a5415fa70de757748323853c977a55aa --- .../android/keyguard/KeyguardUpdateMonitor.java | 14 +------------- .../phone/NotificationPanelViewController.java | 1 - 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java index de09eaa666ca6..2219cf4274983 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java @@ -315,7 +315,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab private boolean mLogoutEnabled; // cached value to avoid IPCs private boolean mIsUdfpsEnrolled; - private boolean mKeyguardQsUserSwitchEnabled; // If the user long pressed the lock icon, disabling face auth for the current session. private boolean mLockIconPressed; private int mActiveMobileDataSubscription = SubscriptionManager.INVALID_SUBSCRIPTION_ID; @@ -1953,7 +1952,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab return isFaceAuthEnabledForUser(KeyguardUpdateMonitor.getCurrentUser()) && !isUdfpsEnrolled(); } - return !isKeyguardQsUserSwitchEnabled(); + return true; } /** @@ -1963,17 +1962,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab return mIsUdfpsEnrolled; } - /** - * @return true if the keyguard qs user switcher shortcut is enabled - */ - public boolean isKeyguardQsUserSwitchEnabled() { - return mKeyguardQsUserSwitchEnabled; - } - - public void setKeyguardQsUserSwitchEnabled(boolean enabled) { - mKeyguardQsUserSwitchEnabled = enabled; - } - private final UserSwitchObserver mUserSwitchObserver = new UserSwitchObserver() { @Override public void onUserSwitching(int newUserId, IRemoteCallback reply) { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index 555df5c37ee31..2bec3f1586562 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -603,7 +603,6 @@ public class NotificationPanelViewController extends PanelViewController { mKeyguardQsUserSwitchEnabled = mKeyguardUserSwitcherEnabled && mResources.getBoolean( R.bool.config_keyguard_user_switch_opens_qs_details); - keyguardUpdateMonitor.setKeyguardQsUserSwitchEnabled(mKeyguardQsUserSwitchEnabled); mShouldUseSplitNotificationShade = Utils.shouldUseSplitNotificationShade(mFeatureFlags, mResources); mView.setWillNotDraw(!DEBUG);