Merge "Initialize mVolumeDialogComponent onMasterMuteChanged in VolumeUI" into rvc-dev
This commit is contained in:
@@ -52,6 +52,15 @@ public class VolumeUI extends SystemUI {
|
||||
new CarAudioManager.CarVolumeCallback() {
|
||||
@Override
|
||||
public void onGroupVolumeChanged(int zoneId, int groupId, int flags) {
|
||||
initVolumeDialogComponent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMasterMuteChanged(int zoneId, int flags) {
|
||||
initVolumeDialogComponent();
|
||||
}
|
||||
|
||||
private void initVolumeDialogComponent() {
|
||||
if (mVolumeDialogComponent == null) {
|
||||
mMainHandler.post(() -> {
|
||||
mVolumeDialogComponent = mVolumeDialogComponentLazy.get();
|
||||
@@ -60,11 +69,6 @@ public class VolumeUI extends SystemUI {
|
||||
mCarAudioManager.unregisterCarVolumeCallback(mVolumeChangeCallback);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMasterMuteChanged(int zoneId, int flags) {
|
||||
// ignored
|
||||
}
|
||||
};
|
||||
|
||||
private boolean mEnabled;
|
||||
|
||||
Reference in New Issue
Block a user