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
This commit is contained in:
Agatha Man
2019-11-14 11:18:01 -08:00
parent 3950314b01
commit 467aa63edc

View File

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