Skip to content
Commit 8fd17b75 authored by Beth Thibodeau's avatar Beth Thibodeau
Browse files

Use route name for output switcher chip

The media router 2 library can include device group names when casting
to a group. So if the route name is available, use that instead of the
LMM device name.

If the route name is not available, we fall back to the LMM device name.
The output switcher will still show as disabled (chip is not clickable and
reads "Other device") if either the device or route is null.

Test: manual, using sample app
Test: atest MediaDeviceManagerTest MediaControlPanelTest
Fixes: 196923854
Fixes: 199951690
Change-Id: I07afbab3f62e6bc7855e0d5623c577231eb3500b
parent 33c3fc34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment