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

Commit 00513137 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "audio:fix STREAM_SYSTEM_ENFORCED index when camera sound forced" am:...

Merge "audio:fix STREAM_SYSTEM_ENFORCED index when camera sound forced" am: 74e618ff am: 432f868e am: c8091284 am: c2e953cf

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1702488

Change-Id: I1238267a839f0ade76af6e7ecd9076e3072297bf
parents 65b6f526 c2e953cf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6535,6 +6535,10 @@ public class AudioService extends IAudioService.Stub
                    if (index == -1) {
                        continue;
                    }
                    if (mPublicStreamType == AudioSystem.STREAM_SYSTEM_ENFORCED
                            && mCameraSoundForced) {
                        index = mIndexMax;
                    }
                    if (DEBUG_VOL) {
                        Log.v(TAG, "readSettings: found stored index " + getValidIndex(index)
                                 + " for group " + mAudioVolumeGroup.name() + ", device: " + name