diff options
| author | 2023-12-27 14:12:22 -0800 | |
|---|---|---|
| committer | 2023-12-27 14:20:46 -0800 | |
| commit | d2630160c78bbf3a0ec3b819c450e3accb13750c (patch) | |
| tree | 97c42535ad1e49f807877728dd74eedcc07b80e0 | |
| parent | f3d540c9ca319e5408fa3f430aa6a4adf773bd10 (diff) | |
Refactor NSSLController updateSensitiveness method
IDE tooling based refactor of update sensitiveness methods for better future reuse.
Bug: 312784780
Flag: N/A -- IDE tooling refactor only
Test: atest NotificationStackScrollLayoutControllerTest
Change-Id: I281b8ced0112636d0cfee927bc615f247e581fe2
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java index 6f5058c8c52e..2e545126c634 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java @@ -366,8 +366,7 @@ public class NotificationStackScrollLayoutController implements Dumpable { @Override public void onStatePostChange() { - mView.updateSensitiveness(mStatusBarStateController.goingToFullShade(), - mLockscreenUserManager.isAnyProfilePublicMode()); + updateSensitivenessWithAnimation(mStatusBarStateController.goingToFullShade()); mView.onStatePostChange(mStatusBarStateController.fromShadeLocked()); if (!FooterViewRefactor.isEnabled()) { updateImportantForAccessibility(); @@ -378,7 +377,7 @@ public class NotificationStackScrollLayoutController implements Dumpable { private final UserChangedListener mLockscreenUserChangeListener = new UserChangedListener() { @Override public void onUserChanged(int userId) { - mView.updateSensitiveness(false, mLockscreenUserManager.isAnyProfilePublicMode()); + updateSensitivenessWithAnimation(false); mHistoryEnabled = null; updateFooter(); } @@ -388,7 +387,11 @@ public class NotificationStackScrollLayoutController implements Dumpable { * Recalculate sensitiveness without animation; called when waking up while keyguard occluded. */ public void updateSensitivenessForOccludedWakeup() { - mView.updateSensitiveness(false, mLockscreenUserManager.isAnyProfilePublicMode()); + updateSensitivenessWithAnimation(false); + } + + private void updateSensitivenessWithAnimation(boolean animate) { + mView.updateSensitiveness(animate, mLockscreenUserManager.isAnyProfilePublicMode()); } /** |