Merge "Rely on the dozeAmount changes for mIsDozing" into sc-dev am: 814655b18c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15348030 Change-Id: I5b1e144f8d5c50b5eab2f99f54a4916b3256dd4e
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user