Move ColorExtractor.OnColorsChangedListener to inside of StatusBar.
Bug: 190746471 Test: manual Change-Id: Ib7c6919c74ab1b9544116793025662eb75ca1ba8
This commit is contained in:
@@ -248,7 +248,7 @@ import dagger.Lazy;
|
||||
/** */
|
||||
public class StatusBar extends SystemUI implements
|
||||
ActivityStarter,
|
||||
ColorExtractor.OnColorsChangedListener, ConfigurationListener,
|
||||
ConfigurationListener,
|
||||
StatusBarStateController.StateListener,
|
||||
LifecycleOwner, BatteryController.BatteryStateChangeCallback,
|
||||
ActivityLaunchAnimator.Callback {
|
||||
@@ -774,6 +774,9 @@ public class StatusBar extends SystemUI implements
|
||||
private final ActivityIntentHelper mActivityIntentHelper;
|
||||
private NotificationStackScrollLayoutController mStackScrollerController;
|
||||
|
||||
private final ColorExtractor.OnColorsChangedListener mOnColorsChangedListener =
|
||||
(extractor, which) -> updateTheme();
|
||||
|
||||
/**
|
||||
* Public constructor for StatusBar.
|
||||
*
|
||||
@@ -981,7 +984,7 @@ public class StatusBar extends SystemUI implements
|
||||
|
||||
mKeyguardIndicationController.init();
|
||||
|
||||
mColorExtractor.addOnColorsChangedListener(this);
|
||||
mColorExtractor.addOnColorsChangedListener(mOnColorsChangedListener);
|
||||
mStatusBarStateController.addCallback(this,
|
||||
SysuiStatusBarStateController.RANK_STATUS_BAR);
|
||||
|
||||
@@ -1897,11 +1900,6 @@ public class StatusBar extends SystemUI implements
|
||||
return mNotificationPanelViewController.hideStatusBarIconsWhenExpanded();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onColorsChanged(ColorExtractor extractor, int which) {
|
||||
updateTheme();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public View getAmbientIndicationContainer() {
|
||||
return mAmbientIndicationContainer;
|
||||
|
||||
Reference in New Issue
Block a user