commit | d446b40140f4c6f4b0745c9b63a9d1ec2437f63b | [log] [tgz] |
---|---|---|
author | Jin Seok Park <jinpark@google.com> | Tue Nov 17 22:58:43 2020 +0900 |
committer | Jin Seok Park <jinpark@google.com> | Thu Nov 19 17:10:48 2020 +0900 |
tree | 722fb7473476500b5a7a2002d69704e2c47a4107 | |
parent | 447c519635a9e25eeb83db97b2e4e0572a1ad7d3 [diff] |
[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