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

Commit 1ce5b26d authored by Jason Simmons's avatar Jason Simmons Committed by Mike Lockwood
Browse files

Only send master volume or mute updates if the settings have changed

parent e3f59793
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -781,9 +781,11 @@ public class AudioService extends IAudioService.Stub {

    /** @see AudioManager#setMasterMute(boolean, IBinder) */
    public void setMasterMute(boolean state, IBinder cb) {
        if (state != AudioSystem.getMasterMute()) {
            AudioSystem.setMasterMute(state);
            sendMasterMuteUpdate(state, AudioManager.FLAG_SHOW_UI);
        }
    }

    /** get master mute state. */
    public boolean isMasterMute() {