summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/print_utils.py
diff options
context:
space:
mode:
authorJaewan Kim <jaewan@google.com>2019-06-24 17:34:20 +0900
committerJaewan Kim <jaewan@google.com>2019-06-25 15:15:21 +0900
commitf3e269ce2155e5c254b99123f8e151edbe7b6aa2 (patch)
tree03fb08b7f6439259968cf03c2b8058acc55e3303 /startop/scripts/lib/print_utils.py
parent2e967bf7e23f3bea67c84193656c1fa534f27eb4 (diff)
Fallback to default volume handling when session is released
Volume key events can be ignored when the foreground activity has specified the MediaSession for handling media/volume key events (via Activity#setMediaController()) but the session is released (i.e. destroyed). Such enforcement was introduced not to use the released session's information when picking the volume stream for control. This CL relaxes the behavior by falling back to the default volume handling logic when the session is released. Bug: 135966139 Test: Tested with the problematic app in the bug, and also with my own test app. Change-Id: I976b0e8d18976f6cfdc3303cabdda55d2a101b4f
Diffstat (limited to 'startop/scripts/lib/print_utils.py')
0 files changed, 0 insertions, 0 deletions