Skip to content

Commit 4ee1f55

Browse files
committed
Restrict MediaRouter selection
Actually restrict the programmatic selection of routes by type. (Oops.) Change-Id: I91e837f7ecbcddb626c664fb470e8296d563498d
1 parent 1c1ece1 commit 4ee1f55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

media/java/android/media/MediaRouter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ static void selectRouteStatic(int types, RouteInfo route) {
276276
Log.w(TAG, "selectRoute ignored; cannot select route with supported types " +
277277
typesToString(route.getSupportedTypes()) + " into route types " +
278278
typesToString(types));
279+
return;
279280
}
280281

281282
if (sStatic.mSelectedRoute != null) {

0 commit comments

Comments
 (0)