Skip to content
Commit d446b401 authored by Jin Seok Park's avatar Jin Seok Park
Browse files

[Media ML] Replace AudioSystem.isActiveStream

AudioSystem.isActiveStream is a hidden API. Replace it with
getting all audio playback configurations using
AudioManager.getActivePlaybackConfigurations and checking if the
given stream exists among them.

Bug: 169386435
Test: Manually checked that volume key works properly while
alarm/music audio is active

Change-Id: I096b28a741353b7a3a93f7e6a73177d29b6d2748
parent 447c5196
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment