MediaRouter: Remove the globally selected route feature
Bug: 23887911, Bug: 32958908 Test: Manual and passed MediaRouterTest Change-Id: I0106cf1054d2117a2e86f99087cd8bda0eac020c
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user