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

Commit d1e3fdc3 authored by Agatha Man's avatar Agatha Man Committed by Automerger Merge Worker
Browse files

Merge "Initialize mVolumeDialogComponent onMasterMuteChanged in VolumeUI" into...

Merge "Initialize mVolumeDialogComponent onMasterMuteChanged in VolumeUI" into rvc-dev am: b1b07971

Change-Id: Ia74c80dbfa9d31e9e197242caf626de4c4c76306
parents 94a96401 b1b07971
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -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;