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

Commit 467aa63e authored by Agatha Man's avatar Agatha Man
Browse files

AudioService - remove sendBroadcastToAll() from setMasterMuteInternalNoCallerCheck()

sendBroadcastToAll is a duplicate broadcast of MASTER_MUTE_CHANGED_ACTION. The same broadcast is called by sendMasterMuteUpdate.

Test: make
Bug: 144352459
Change-Id: I0f5283fe35521f04c04c159d42bd907fccfb226f
parent 3950314b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2797,10 +2797,6 @@ public class AudioService extends IAudioService.Stub
                setSystemAudioMute(mute);
                AudioSystem.setMasterMute(mute);
                sendMasterMuteUpdate(mute, flags);

                Intent intent = new Intent(AudioManager.MASTER_MUTE_CHANGED_ACTION);
                intent.putExtra(AudioManager.EXTRA_MASTER_VOLUME_MUTED, mute);
                sendBroadcastToAll(intent);
            }
        }
    }