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

Commit bc0ebf3f authored by Beverly Tai's avatar Beverly Tai Committed by Automerger Merge Worker
Browse files

Merge "Rely on the dozeAmount changes for mIsDozing" into sc-dev am: 814655b1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15348030

Change-Id: I020aa5e6f751e9f21bd1af8c3961f226bf502334
parents e1aa2f69 814655b1
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -133,12 +133,16 @@ public class AnimatableClockController extends ViewController<AnimatableClockVie
        }
        }
    };
    };


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

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