Merge "Update route count properly when MediaRouteButton detects grouped/ungrouped events" into jb-dev
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user