diff options
author | Beverly <beverlyt@google.com> | 2021-06-08 11:52:21 -0400 |
---|---|---|
committer | Beverly <beverlyt@google.com> | 2021-06-08 12:38:35 -0400 |
commit | f3e46cf35046694d01e497074300c9f76f70594f (patch) | |
tree | 602329bda5022de0a7a36c23edea8c820c588c6b /packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java | |
parent | d8be4517b3da4ab236fd04dd9b85b528f38cf5b8 (diff) |
Remove owner and logout views from KeyguardStatusView
information is moved to the keyguard indication area
Test: manual
Fixes: 183708476
Change-Id: I95b229c71006c43aabf5147d1cc6f6c838b8cc85
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java index e4cabcb94ebe..32935c293715 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusViewController.java @@ -17,7 +17,6 @@ package com.android.keyguard; import android.graphics.Rect; -import android.os.UserHandle; import android.util.Slog; import com.android.systemui.keyguard.KeyguardUnlockAnimationController; @@ -97,8 +96,6 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV @Override public void onInit() { mKeyguardClockSwitchController.init(); - mView.setEnableMarquee(mKeyguardUpdateMonitor.isDeviceInteractive()); - mView.updateLogoutView(shouldShowLogout()); } @Override @@ -143,20 +140,6 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV } /** - * Get the height of the logout button. - */ - public int getLogoutButtonHeight() { - return mView.getLogoutButtonHeight(); - } - - /** - * Get the height of the owner information view. - */ - public int getOwnerInfoHeight() { - return mView.getOwnerInfoHeight(); - } - - /** * Set keyguard status view alpha. */ public void setAlpha(float alpha) { @@ -254,11 +237,6 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV mKeyguardClockSwitchController.refresh(); } - private boolean shouldShowLogout() { - return mKeyguardUpdateMonitor.isLogoutEnabled() - && KeyguardUpdateMonitor.getCurrentUser() != UserHandle.USER_SYSTEM; - } - private final ConfigurationController.ConfigurationListener mConfigurationListener = new ConfigurationController.ConfigurationListener() { @Override @@ -269,7 +247,6 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV @Override public void onDensityOrFontScaleChanged() { mKeyguardClockSwitchController.onDensityOrFontScaleChanged(); - mView.onDensityOrFontScaleChanged(); } }; @@ -277,8 +254,6 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV @Override public void onLockScreenModeChanged(int mode) { mKeyguardSliceViewController.updateLockScreenMode(mode); - mView.setCanShowOwnerInfo(false); - mView.updateLogoutView(false); } @Override @@ -301,31 +276,12 @@ public class KeyguardStatusViewController extends ViewController<KeyguardStatusV if (showing) { if (DEBUG) Slog.v(TAG, "refresh statusview showing:" + showing); refreshTime(); - mView.updateOwnerInfo(); - mView.updateLogoutView(shouldShowLogout()); } } @Override - public void onStartedWakingUp() { - mView.setEnableMarquee(true); - } - - @Override - public void onFinishedGoingToSleep(int why) { - mView.setEnableMarquee(false); - } - - @Override public void onUserSwitchComplete(int userId) { mKeyguardClockSwitchController.refreshFormat(); - mView.updateOwnerInfo(); - mView.updateLogoutView(shouldShowLogout()); - } - - @Override - public void onLogoutEnabledChanged() { - mView.updateLogoutView(shouldShowLogout()); } }; |