Commit c0204bfd by bachinger Committed by Oliver Woodman

Throw when window uid changes for unexpected reasons

PiperOrigin-RevId: 321553397
parent ab95e3f3
...@@ -1055,7 +1055,8 @@ import java.util.concurrent.TimeoutException; ...@@ -1055,7 +1055,8 @@ import java.util.concurrent.TimeoutException;
} else if (timelineChanged) { } else if (timelineChanged) {
transitionReason = MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED; transitionReason = MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED;
} else { } else {
transitionReason = MEDIA_ITEM_TRANSITION_REASON_SKIP; // A change in window uid must be justified by one of the reasons above.
throw new IllegalStateException();
} }
return new Pair<>(/* isTransitioning */ true, transitionReason); return new Pair<>(/* isTransitioning */ true, transitionReason);
} else if (positionDiscontinuity } else if (positionDiscontinuity
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment