OSDN Git Service

Permit MediaRouteButton to select system routes in toggle mode.
authorAdam Powell <adamp@google.com>
Tue, 19 Jun 2012 22:58:38 +0000 (15:58 -0700)
committerAdam Powell <adamp@google.com>
Tue, 19 Jun 2012 22:58:38 +0000 (15:58 -0700)
Bug 6694917

Change-Id: I82e68aee196c72f349e7638717b727ef3f23e9b5

core/java/android/app/MediaRouteButton.java

index 018b25d..e28a415 100644 (file)
@@ -110,7 +110,7 @@ public class MediaRouteButton extends View {
                     final RouteInfo route = mRouter.getRouteAt(i);
                     if ((route.getSupportedTypes() & mRouteTypes) != 0 &&
                             route != mRouter.getSystemAudioRoute()) {
-                        mRouter.selectRoute(mRouteTypes, route);
+                        mRouter.selectRouteInt(mRouteTypes, route);
                     }
                 }
             }