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

Commit d1851e6e authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Make mute/unmute work

Bug: 18844550
Change-Id: I431a223d55430aa8e1bb28f0275e11876ed0e0bb
parent e876dbca
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);
                            }
                        }