mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 00:20:32 +00:00
Update LocalPlaylistFragment.java
This commit is contained in:
parent
bb495f567c
commit
50739277c4
@ -420,15 +420,7 @@ public class LocalPlaylistFragment extends BaseLocalListFragment<List<PlaylistSt
|
||||
playlistItem.getStreamId());
|
||||
final StreamStateEntity streamStateEntity = streamStatesIter.next();
|
||||
final long duration = playlistItem.toStreamInfoItem().getDuration();
|
||||
boolean isFinished = false;
|
||||
if (streamStateEntity != null) {
|
||||
isFinished = streamStateEntity.isFinished(duration);
|
||||
}
|
||||
final boolean isNotWatchedItem = (streamStateEntity != null
|
||||
&& !isFinished);
|
||||
if (indexInHistory < 0) {
|
||||
notWatchedItems.add(playlistItem);
|
||||
} else if (isNotWatchedItem) {
|
||||
if (indexInHistory < 0 || (streamStateEntity != null && !streamStateEntity.isFinished(duration))) {
|
||||
notWatchedItems.add(playlistItem);
|
||||
} else if (!thumbnailVideoRemoved
|
||||
&& playlistManager.getPlaylistThumbnail(playlistId)
|
||||
|
Loading…
Reference in New Issue
Block a user