Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2630160 authored by Richard MacGregor's avatar Richard MacGregor
Browse files

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
parent f3d540c9
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -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());
    }

    /**