[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user