summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorInsun Kang <insun@google.com>2015-11-26 15:35:44 +0900
committerInsun Kang <insun@google.com>2015-12-01 04:39:11 +0000
commit30be970a8ecd984ace75354e00a8d969577d18e9 (patch)
tree5886b04d75bc614dbc8e9264e002b715a7f54f95 /tools/aapt2/java/JavaClassGenerator.cpp
parent10373488f0e3a5c44a7d094befa8d3ad451b2bac (diff)
MediaSession: Improve MediaSessionStack logic
There was an issue that media button events (play / pause) didn’t go to the expected media session. If an app creates a media session during all media sessions are paused, the next coming media play event is consumed by the newly created media session. It makes sense in general, but if the media session is created in a background process without any visible UI, it causes unexpected results. This patch resolves the issue by checking if a newly added session comes from the most recent user-facing app. Bug: 24990104 Change-Id: Ic9632bced37bffd28260afe3523d9a20ea4d3c21
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions