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

Commit c4b1a4f5 authored by liuxiaoyu7's avatar liuxiaoyu7
Browse files

[Bugfix]audio:force show safe volume warning dialog



when 3rd app intercept volume event ,
and using setstreamVolume or adjustsuggeststreamvolume interface ,
but not using SHOW_UI flags,
When the safe volume is reached,
the volume can no longer be adjusted.
At this time, the user should be reminded .

Signed-off-by: default avatarliuxiaoyu7 <liuxiaoyu7@xiaomi.com>
Change-Id: Id8fbbe3f8caf4a85c6ed7bc196f8ed386d29fec8
parent 23438d66
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8012,6 +8012,7 @@ public class AudioService extends IAudioService.Stub
        public void postDisplaySafeVolumeWarning(int flags) {
            if (mController == null)
                return;
            flags = flags | AudioManager.FLAG_SHOW_UI;
            try {
                mController.displaySafeVolumeWarning(flags);
            } catch (RemoteException e) {