Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ee1f55c authored by Adam Powell's avatar Adam Powell
Browse files

Restrict MediaRouter selection

Actually restrict the programmatic selection of routes by
type. (Oops.)

Change-Id: I91e837f7ecbcddb626c664fb470e8296d563498d
parent 1c1ece1b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -276,6 +276,7 @@ public class MediaRouter {
            Log.w(TAG, "selectRoute ignored; cannot select route with supported types " +
            Log.w(TAG, "selectRoute ignored; cannot select route with supported types " +
                    typesToString(route.getSupportedTypes()) + " into route types " +
                    typesToString(route.getSupportedTypes()) + " into route types " +
                    typesToString(types));
                    typesToString(types));
            return;
        }
        }


        if (sStatic.mSelectedRoute != null) {
        if (sStatic.mSelectedRoute != null) {