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

Commit 2021082b authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Android (Google) Code Review
Browse files

Merge "Make mute/unmute work"

parents ebc440ea d1851e6e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -836,7 +836,9 @@ public class MediaSessionService extends SystemService implements Monitor {
                            mAudioService.setMasterMute(!isMasterMute, flags, packageName, mICallback);
                        } else {
                            mAudioService.adjustMasterVolume(direction, flags, packageName);
                            if (isMasterMute) {
                            // Do not call setStreamMute when direction = 0 which is just to show
                            // UI.
                            if (isMasterMute && direction != 0) {
                                mAudioService.setMasterMute(false, flags, packageName, mICallback);
                            }
                        }
@@ -847,7 +849,9 @@ public class MediaSessionService extends SystemService implements Monitor {
                        } else {
                            mAudioService.adjustSuggestedStreamVolume(direction, suggestedStream,
                                    flags, packageName);
                            if (isStreamMute) {
                            // Do not call setStreamMute when direction = 0 which is just to show
                            // UI.
                            if (isStreamMute && direction != 0) {
                                mAudioService.setStreamMute(suggestedStream, false, mICallback);
                            }
                        }