diff options
| author | 2023-02-03 17:28:27 +0000 | |
|---|---|---|
| committer | 2023-03-03 10:01:49 +0000 | |
| commit | 188ab3277892f1ced469531619574d52ea2bf08d (patch) | |
| tree | b4e3fc41aab1f6b51206942bb6966c22cfb6d752 /libs/androidfw/ApkParsing.cpp | |
| parent | 2940697c9c7d6edecc9ce1d14d9945d92139bf4e (diff) | |
Fix volume controls show media instead of call volume during a call.
- On some apps like Signal, When the app is in the foreground and there
is a active phone call, volume controls show media volume control
instead of call volume control.
- Investigation showed that with apps having the right behaviour
"MediaSession.dispatchVolumeKeyEvent" is called, while with apps having
the wrong behaviour
"MediaSessionService.dispatchVolumeKeyEventToSessionAsSystemService" is
called.
- Following this guided to the cause of the steps to reproduce it in
other apps by calling "Activty.setMediaController".
- Issue was reproducible on the Sample MediaRouter App.
- Fixed it through checking not being in a call before forwarding the
volume event to the session.
Bug: 240705522
Test: Manual using Signal App / Youtube and Sample MediaRouter App.
Change-Id: Iabac3c80631fd429daba23454488fceedbcc584d
(cherry picked from commit ed9f9d1b0adfb55557b34bdd76504ab8abdeae7e)
Merged-In: Iabac3c80631fd429daba23454488fceedbcc584d
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions