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

Commit 348476e0 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
(cherry picked from commit 1ae52c25c81bab7d0aa5c1994ea604a4836027eb)
parent 2267cbc5
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2776,10 +2776,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);
            }
        }
    }