Swap && to reduce computation

This commit is contained in:
Stypox 2026-01-27 21:59:52 +01:00
parent 8d9af62736
commit 817fccb7a3
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -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)