Swap && to reduce computation
This commit is contained in:
parent
a55c90c536
commit
3a5f51f2e8
1 changed files with 2 additions and 2 deletions
|
|
@ -457,8 +457,8 @@ public class LocalPlaylistFragment extends BaseLocalListFragment<List<PlaylistSt
|
||||||
// if the stream was played for less than 5 seconds, see
|
// if the stream was played for less than 5 seconds, see
|
||||||
// StreamStateEntity#PLAYBACK_SAVE_THRESHOLD_START_MILLISECONDS
|
// StreamStateEntity#PLAYBACK_SAVE_THRESHOLD_START_MILLISECONDS
|
||||||
|| streamStateEntity == null
|
|| streamStateEntity == null
|
||||||
|| (!streamStateEntity.isFinished(duration)
|
|| (!removePartiallyWatched
|
||||||
&& !removePartiallyWatched)) {
|
&& !streamStateEntity.isFinished(duration))) {
|
||||||
itemsToKeep.add(playlistItem);
|
itemsToKeep.add(playlistItem);
|
||||||
} else if (!isThumbnailPermanent && !thumbnailVideoRemoved
|
} else if (!isThumbnailPermanent && !thumbnailVideoRemoved
|
||||||
&& playlistManager.getPlaylistThumbnailStreamId(playlistId)
|
&& playlistManager.getPlaylistThumbnailStreamId(playlistId)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue