state on play end fix

This commit is contained in:
Yuriy Liskov
2020-10-14 05:22:52 +03:00
parent c85b62ecfe
commit 6489861dc7

View File

@@ -148,6 +148,15 @@ public class StateUpdater extends PlayerEventListenerHelper {
}
}
@Override
public void onPlayEnd() {
Video video = mController.getVideo();
if (video != null) {
mStates.remove(video.videoId);
}
}
private void ensureVideoSize(Video item) {
State state = mStates.get(item.videoId);