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

Commit 74e618ff authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

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

parents 44631020 82c6cbd5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5860,6 +5860,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);