1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-10 12:00:03 +00:00

Readd spaces

This commit is contained in:
Stypox 2022-05-05 18:04:33 +02:00 committed by GitHub
parent c2762d3b5e
commit 59d8c570b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -414,12 +414,14 @@ public class LocalPlaylistFragment extends BaseLocalListFragment<List<PlaylistSt
} else {
final Iterator<StreamStateEntity> streamStatesIter = recordManager
.loadLocalStreamStateBatch(playlist).blockingGet().iterator();
while (playlistIter.hasNext()) {
final PlaylistStreamEntry playlistItem = playlistIter.next();
final int indexInHistory = Collections.binarySearch(historyStreamIds,
playlistItem.getStreamId());
final StreamStateEntity streamStateEntity = streamStatesIter.next();
final long duration = playlistItem.toStreamInfoItem().getDuration();
if (indexInHistory < 0 || (streamStateEntity != null
&& !streamStateEntity.isFinished(duration))) {
notWatchedItems.add(playlistItem);