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());
|
playlistItem.getStreamId());
|
||||||
final StreamStateEntity streamStateEntity = streamStatesIter.next();
|
final StreamStateEntity streamStateEntity = streamStatesIter.next();
|
||||||
final long duration = playlistItem.toStreamInfoItem().getDuration();
|
final long duration = playlistItem.toStreamInfoItem().getDuration();
|
||||||
boolean isFinished = false;
|
if (indexInHistory < 0 || (streamStateEntity != null && !streamStateEntity.isFinished(duration))) {
|
||||||
if (streamStateEntity != null) {
|
|
||||||
isFinished = streamStateEntity.isFinished(duration);
|
|
||||||
}
|
|
||||||
final boolean isNotWatchedItem = (streamStateEntity != null
|
|
||||||
&& !isFinished);
|
|
||||||
if (indexInHistory < 0) {
|
|
||||||
notWatchedItems.add(playlistItem);
|
|
||||||
} else if (isNotWatchedItem) {
|
|
||||||
notWatchedItems.add(playlistItem);
|
notWatchedItems.add(playlistItem);
|
||||||
} else if (!thumbnailVideoRemoved
|
} else if (!thumbnailVideoRemoved
|
||||||
&& playlistManager.getPlaylistThumbnail(playlistId)
|
&& playlistManager.getPlaylistThumbnail(playlistId)
|
||||||
|
Loading…
Reference in New Issue
Block a user