mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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) {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user