MediaRouter: Remove the globally selected route feature

Bug: 23887911, Bug: 32958908
Test: Manual and passed MediaRouterTest
Change-Id: I0106cf1054d2117a2e86f99087cd8bda0eac020c
This commit is contained in:
Sungsoo
2017-03-09 15:35:07 +09:00
parent 66fde44b14
commit d103e56e65
3 changed files with 57 additions and 114 deletions

View File

@@ -34,20 +34,12 @@ public final class MediaRouterClientState implements Parcelable {
*/
public final ArrayList<RouteInfo> routes;
/**
* The id of the current globally selected route, or null if none.
* Globally selected routes override any other route selections that applications
* may have made. Used for remote displays.
*/
public String globallySelectedRouteId;
public MediaRouterClientState() {
routes = new ArrayList<RouteInfo>();
}
MediaRouterClientState(Parcel src) {
routes = src.createTypedArrayList(RouteInfo.CREATOR);
globallySelectedRouteId = src.readString();
}
public RouteInfo getRoute(String id) {
@@ -69,13 +61,11 @@ public final class MediaRouterClientState implements Parcelable {
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeTypedList(routes);
dest.writeString(globallySelectedRouteId);
}
@Override
public String toString() {
return "MediaRouterClientState{ globallySelectedRouteId="
+ globallySelectedRouteId + ", routes=" + routes.toString() + " }";
return "MediaRouterClientState{ routes=" + routes.toString() + " }";
}
public static final Parcelable.Creator<MediaRouterClientState> CREATOR =