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

Commit 93d32ef1 authored by jiabin's avatar jiabin
Browse files

Ensure stream type valid in AudioService.isStreamMute

Bug: 37950108
Test: Test with the code in the bug on marlin.
Change-Id: If577c3d19ddbf1aff87dbf832af1a3ebbc7e5494
parent de295549
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1908,6 +1908,7 @@ public class AudioService extends IAudioService.Stub
            streamType = getActiveStreamType(streamType);
        }
        synchronized (VolumeStreamState.class) {
            ensureValidStreamType(streamType);
            return mStreamStates[streamType].mIsMuted;
        }
    }