summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-12-20 01:44:31 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-12-20 01:44:31 +0000
commitabb93855d8dca79f0d2abdab0df6daeea6608c66 (patch)
treecd2d5c305f62762d8f0cc579f752dad1120e3528
parentda0d82c21695e11bd40fa4daaf0c3d76c64b0ab4 (diff)
parentba38fd02df655ffa5577b16f8f003982338bb5ef (diff)
downloadbase-abb93855d8dca79f0d2abdab0df6daeea6608c66.tar.gz
Merge "[Bugfix]audioservice:fix voice_call default volume" into android10-dev
-rw-r--r--services/core/java/com/android/server/audio/AudioService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java
index 4b08db6be047..733067179a67 100644
--- a/services/core/java/com/android/server/audio/AudioService.java
+++ b/services/core/java/com/android/server/audio/AudioService.java
@@ -678,7 +678,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);