Throw when window uid changes for unexpected reasons
PiperOrigin-RevId: 321553397
This commit is contained in:
parent
ab95e3f388
commit
c0204bfdc4
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user