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

Commit 45926dcc authored by Hank Freund's avatar Hank Freund Committed by Takayuki Hoshi
Browse files

Change default stream volume for TV to 1/4 max instead of 3/4

b/26048878

Change-Id: I423e9b8fb03d6875e7d0e4a4266943e950defefe
(cherry picked from commit db27de5da493b9d791321e8771ae59998dad8c28)
parent cd854f58
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -630,8 +630,12 @@ public class AudioService extends IAudioService.Stub {
                MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC]);
        if (maxVolume != MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC]) {
            MAX_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] = maxVolume;
            if (isPlatformTelevision()) {
                AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] = maxVolume / 4;
            } else {
                AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_MUSIC] = (maxVolume * 3) / 4;
            }
        }

        sSoundEffectVolumeDb = context.getResources().getInteger(
                com.android.internal.R.integer.config_soundEffectVolumeDb);