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

Commit 814655b1 authored by Beverly Tai's avatar Beverly Tai Committed by Android (Google) Code Review
Browse files

Merge "Rely on the dozeAmount changes for mIsDozing" into sc-dev

parents 2b11e7f2 346acd49
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -133,12 +133,16 @@ public class AnimatableClockController extends ViewController<AnimatableClockVie
        }
    };

    @Override
    protected void onInit() {
        mIsDozing = mStatusBarStateController.isDozing();
    }

    @Override
    protected void onViewAttached() {
        updateLocale();
        mBroadcastDispatcher.registerReceiver(mLocaleBroadcastReceiver,
                new IntentFilter(Intent.ACTION_LOCALE_CHANGED));
        mIsDozing = mStatusBarStateController.isDozing();
        mDozeAmount = mStatusBarStateController.getDozeAmount();
        mBatteryController.addCallback(mBatteryCallback);
        mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback);