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

Commit 7139fdc0 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "AudioService: persist volume of ring stream when ringer mode changed"

parents 93dcc45e 9e0d25fb
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1922,6 +1922,15 @@ public class AudioService extends IAudioService.Stub {
                                entry.setValue(10);
                            }
                        }
                        // Persist volume for stream ring when it is changed here
                      final int device = getDeviceForStream(streamType);
                      sendMsg(mAudioHandler,
                              MSG_PERSIST_VOLUME,
                              SENDMSG_QUEUE,
                              device,
                              0,
                              mStreamStates[streamType],
                              PERSIST_DELAY);
                    }
                }
                mStreamStates[streamType].mute(false);