Merge "Update route count properly when MediaRouteButton detects grouped/ungrouped events" into jb-dev

This commit is contained in:
Adam Powell
2012-06-22 19:58:13 -07:00
committed by Android (Google) Code Review
2 changed files with 13 additions and 2 deletions

View File

@@ -374,5 +374,16 @@ public class MediaRouteButton extends View {
public void onRouteRemoved(MediaRouter router, RouteInfo info) {
updateRouteCount();
}
@Override
public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group,
int index) {
updateRouteCount();
}
@Override
public void onRouteUngrouped(MediaRouter router, RouteInfo info, RouteGroup group) {
updateRouteCount();
}
}
}

View File

@@ -1152,8 +1152,8 @@ public class MediaRouter {
route.mGroup = this;
mUpdateName = true;
updateVolume();
dispatchRouteGrouped(route, this, at);
routeUpdated();
dispatchRouteGrouped(route, this, at);
}
/**
@@ -1176,8 +1176,8 @@ public class MediaRouter {
route.mGroup = this;
mUpdateName = true;
updateVolume();
dispatchRouteGrouped(route, this, insertAt);
routeUpdated();
dispatchRouteGrouped(route, this, insertAt);
}
/**