mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-05 21:40:47 -06:00
state on play end fix
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user