OSDN Git Service

Restrict MediaRouter selection
authorAdam Powell <adamp@google.com>
Mon, 18 Jun 2012 18:51:34 +0000 (11:51 -0700)
committerAdam Powell <adamp@google.com>
Mon, 18 Jun 2012 18:52:17 +0000 (11:52 -0700)
Actually restrict the programmatic selection of routes by
type. (Oops.)

Change-Id: I91e837f7ecbcddb626c664fb470e8296d563498d

media/java/android/media/MediaRouter.java

index 715e752..6f9cc62 100644 (file)
@@ -276,6 +276,7 @@ public class MediaRouter {
             Log.w(TAG, "selectRoute ignored; cannot select route with supported types " +
                     typesToString(route.getSupportedTypes()) + " into route types " +
                     typesToString(types));
+            return;
         }
 
         if (sStatic.mSelectedRoute != null) {