[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: liuxiaoyu7 <liuxiaoyu7@xiaomi.com>
Change-Id: Id8fbbe3f8caf4a85c6ed7bc196f8ed386d29fec8
This commit is contained in:
liuxiaoyu7
2021-01-28 15:59:09 +08:00
parent 23438d66dd
commit c4b1a4f5a6

View File

@@ -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) {