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)
This commit is contained in:
Agatha Man
2019-11-14 11:18:01 -08:00
parent 2267cbc57f
commit 348476e094

View File

@@ -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);
}
}
}