Throw when window uid changes for unexpected reasons

PiperOrigin-RevId: 321553397
This commit is contained in:
bachinger 2020-07-16 14:30:00 +01:00 committed by Oliver Woodman
parent ab95e3f388
commit c0204bfdc4

View File

@ -1055,7 +1055,8 @@ import java.util.concurrent.TimeoutException;
} else if (timelineChanged) {
transitionReason = MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED;
} 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);
} else if (positionDiscontinuity