mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
Readd spaces
This commit is contained in:
parent
c2762d3b5e
commit
59d8c570b7
@ -414,12 +414,14 @@ public class LocalPlaylistFragment extends BaseLocalListFragment<List<PlaylistSt
|
|||||||
} else {
|
} else {
|
||||||
final Iterator<StreamStateEntity> streamStatesIter = recordManager
|
final Iterator<StreamStateEntity> streamStatesIter = recordManager
|
||||||
.loadLocalStreamStateBatch(playlist).blockingGet().iterator();
|
.loadLocalStreamStateBatch(playlist).blockingGet().iterator();
|
||||||
|
|
||||||
while (playlistIter.hasNext()) {
|
while (playlistIter.hasNext()) {
|
||||||
final PlaylistStreamEntry playlistItem = playlistIter.next();
|
final PlaylistStreamEntry playlistItem = playlistIter.next();
|
||||||
final int indexInHistory = Collections.binarySearch(historyStreamIds,
|
final int indexInHistory = Collections.binarySearch(historyStreamIds,
|
||||||
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();
|
||||||
|
|
||||||
if (indexInHistory < 0 || (streamStateEntity != null
|
if (indexInHistory < 0 || (streamStateEntity != null
|
||||||
&& !streamStateEntity.isFinished(duration))) {
|
&& !streamStateEntity.isFinished(duration))) {
|
||||||
notWatchedItems.add(playlistItem);
|
notWatchedItems.add(playlistItem);
|
||||||
|
Loading…
Reference in New Issue
Block a user