diff options
author | Hyundo Moon <hdmoon@google.com> | 2020-04-21 16:02:17 +0900 |
---|---|---|
committer | Hyundo Moon <hdmoon@google.com> | 2020-04-23 16:11:26 +0900 |
commit | cacc4de46b68df0bcb3d39cda68d7023287acf7c (patch) | |
tree | ba222d175b92fab9627947effc44f798e0602ce0 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5ff2b3ce04e6530f996e63f78a60fb4e79d5d918 (diff) |
MediaRouter2: Release controller when transfer result arrives
Previously when MediaRouter2#transferTo(route) is called, it directly
released current controller. This CL changes the release timing to
when the actual transfer result comes.
Also, this CL prevents a RoutingController instance from being passed
both to:
- As 'oldController' in onTransfer()
- As 'controller' in onStop()
These works make TransferCallback easy to use: when onStop() is called,
app can just stop playing media.
Bug: 154680146
Test: Passed CTS / Checked logs in onTransfer/onStop
with output switcher
Change-Id: I4449021f98ca887252e05398356df9b53592c145
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions