Swap && to reduce computation
This commit is contained in:
parent
8d9af62736
commit
817fccb7a3
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
|
||||
// StreamStateEntity#PLAYBACK_SAVE_THRESHOLD_START_MILLISECONDS
|
||||
|| streamStateEntity == null
|
||||
|| (!streamStateEntity.isFinished(duration)
|
||||
&& !removePartiallyWatched)) {
|
||||
|| (!removePartiallyWatched
|
||||
&& !streamStateEntity.isFinished(duration))) {
|
||||
itemsToKeep.add(playlistItem);
|
||||
} else if (!isThumbnailPermanent && !thumbnailVideoRemoved
|
||||
&& playlistManager.getPlaylistThumbnailStreamId(playlistId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue