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

Commit f7ffa4e1 authored by liuxiaoyu7's avatar liuxiaoyu7 Committed by Luca Stefani
Browse files

audioservice:fix voice_call default volume



if default and max property key is not be configured,maxvolume will be -1
so default volume will be set to -1.

Change-Id: I11406786ca46d458d3feb6f57825a2a7bbc35346
Signed-off-by: default avatarliuxiaoyu7 <liuxiaoyu7@xiaomi.com>
parent 99dd8db8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -680,7 +680,7 @@ public class AudioService extends IAudioService.Stub
            AudioSystem.DEFAULT_STREAM_VOLUME[AudioSystem.STREAM_VOICE_CALL] = defaultCallVolume;
        } else {
            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);