File tree 1 file changed +0
-21
lines changed
mediarouter/mediarouter/src/main/java/androidx/mediarouter/media
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -602,10 +602,6 @@ public void run() {
602
602
* the route controller.
603
603
* @param dynamicRoutes The dynamic route descriptors for published routes.
604
604
* At least a selected or selecting route should be included.
605
- *
606
- * @throws IllegalArgumentException Thrown when no dynamic route descriptors are {@link
607
- * DynamicRouteDescriptor#SELECTED SELECTED} or {@link DynamicRouteDescriptor#SELECTING
608
- * SELECTING}.
609
605
*/
610
606
public final void notifyDynamicRoutesChanged (
611
607
@ NonNull MediaRouteDescriptor groupRoute ,
@@ -616,23 +612,6 @@ public final void notifyDynamicRoutesChanged(
616
612
if (dynamicRoutes == null ) {
617
613
throw new NullPointerException ("dynamicRoutes must not be null" );
618
614
}
619
-
620
- boolean hasSelectedRoute = false ;
621
- for (DynamicRouteDescriptor route : dynamicRoutes ) {
622
- int state = route .getSelectionState ();
623
- if (state == DynamicRouteDescriptor .SELECTED
624
- || state == DynamicRouteDescriptor .SELECTING ) {
625
- hasSelectedRoute = true ;
626
- break ;
627
- }
628
- }
629
-
630
- if (!hasSelectedRoute ) {
631
- throw new IllegalArgumentException ("dynamicRoutes must have at least one selected"
632
- + " or selecting route." );
633
-
634
- }
635
-
636
615
synchronized (mLock ) {
637
616
if (mExecutor != null ) {
638
617
final OnDynamicRoutesChangedListener listener = mListener ;
You can’t perform that action at this time.
0 commit comments