Merge "Fix regression on voice call default volume" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-03-24 02:25:56 +00:00
committed by Android (Google) Code Review

View File

@@ -693,7 +693,7 @@ public class AudioService extends IAudioService.Stub
AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_VOICE_CALL] = defaultCallVolume; AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_VOICE_CALL] = defaultCallVolume;
} else { } else {
AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_VOICE_CALL] = AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_VOICE_CALL] =
(maxCallVolume * 3) / 4; (MAX_STREAM_VOLUME[AudioSystem.STREAM_VOICE_CALL] * 3) / 4;
} }
int maxMusicVolume = SystemProperties.getInt("ro.config.media_vol_steps", -1); int maxMusicVolume = SystemProperties.getInt("ro.config.media_vol_steps", -1);