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

Commit e11ebed0 authored by Dave Mankoff's avatar Dave Mankoff
Browse files

Replace Dependency.get() calls with existing member variables.

(Very low hanging fruit.)

Bug: 141882822
Test: atest SystemUITests.
Change-Id: I962620261952da37bbc093f44edd4f920c34d2cd
parent 11d07a8b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1335,7 +1335,7 @@ public class StatusBar extends SystemUI implements DemoMode,
        // TODO: Bring these out of StatusBar.
        ((UserInfoControllerImpl) Dependency.get(UserInfoController.class))
                .onDensityOrFontScaleChanged();
        Dependency.get(UserSwitcherController.class).onDensityOrFontScaleChanged();
        mUserSwitcherController.onDensityOrFontScaleChanged();
        if (mKeyguardUserSwitcher != null) {
            mKeyguardUserSwitcher.onDensityOrFontScaleChanged();
        }
@@ -3427,8 +3427,7 @@ public class StatusBar extends SystemUI implements DemoMode,
        // ringing.
        // Other transitions are covered in handleVisibleToUserChanged().
        if (mVisible && (newState == StatusBarState.SHADE_LOCKED
                || (((SysuiStatusBarStateController) Dependency.get(StatusBarStateController.class))
                .goingToFullShade()))) {
                || mStatusBarStateController.goingToFullShade())) {
            clearNotificationEffects();
        }
        if (newState == StatusBarState.KEYGUARD) {