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

Commit 4fa359e8 authored by RoboErik's avatar RoboErik
Browse files

Make isStreamMute correctly handle master volume devices

isStreamMute should return the master mute value if mUseMasterVolume
is true. This adds that check.

Change-Id: I6d5f5552c480028972e69ff9d670e10c4e496d05
parent 7b3da2d4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1191,7 +1191,11 @@ public class AudioManager {
    public boolean isStreamMute(int streamType) {
        IAudioService service = getService();
        try {
            if (mUseMasterVolume) {
                return service.isMasterMute();
            } else {
                return service.isStreamMute(streamType);
            }
        } catch (RemoteException e) {
            Log.e(TAG, "Dead object in isStreamMute", e);
            return false;