OSDN Git Service

Select a system audio route only when needed
authorSungsoo Lim <sungsoo@google.com>
Thu, 14 Sep 2017 01:12:10 +0000 (10:12 +0900)
committerSungsoo Lim <sungsoo@google.com>
Mon, 18 Sep 2017 04:50:56 +0000 (13:50 +0900)
commitf8e38e2dbbf3410179c9e18e05b7d4022720cfb6
tree2c884b8e3085971a68bac77814a4913df006f3cf
parentc3f81baeee29d4f9a81ba168053d5278c3cd00f3
Select a system audio route only when needed

When system audio routes are changd, updateAudioRoutes is called, and
it selects a system audio route even when a none system route was
seleted.
That makes the selected route be unselected and this CL fixes it.

Bug: 65403568
Test: manual tested that the issue is fixed
Change-Id: I5df9d3e5f68cfd40fdb625937f9a8e16f4308e16
media/java/android/media/MediaRouter.java