mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2025-10-03 09:49:21 +02:00
Player/handleIntent: de morgan samePlayQueue
Okay, so this is the … only? branch in this if-chain that will conditionally fire if `playQueue` *is* `null`, sometimes. This is why the unconditional `initPlayback` in `else` is not passed a `null` in many cases … because `RESUME_PLAYBACK` is `true` and `playQueue` is `null`. It’s gonna be hard to figure out which parts of that are intentional, I say.
This commit is contained in:
parent
e14ec3a4f9
commit
fd24c08529
1 changed files with 2 additions and 1 deletions
|
@ -429,7 +429,8 @@ public final class Player implements PlaybackListener, Listener {
|
||||||
|
|
||||||
} else if (intent.getBooleanExtra(RESUME_PLAYBACK, false)
|
} else if (intent.getBooleanExtra(RESUME_PLAYBACK, false)
|
||||||
&& DependentPreferenceHelper.getResumePlaybackEnabled(context)
|
&& DependentPreferenceHelper.getResumePlaybackEnabled(context)
|
||||||
&& !samePlayQueue
|
// !samePlayQueue
|
||||||
|
&& (playQueue == null || !playQueue.equalStreamsAndIndex(newQueue))
|
||||||
&& !newQueue.isEmpty()
|
&& !newQueue.isEmpty()
|
||||||
&& newQueue.getItem() != null
|
&& newQueue.getItem() != null
|
||||||
&& newQueue.getItem().getRecoveryPosition() == PlayQueueItem.RECOVERY_UNSET) {
|
&& newQueue.getItem().getRecoveryPosition() == PlayQueueItem.RECOVERY_UNSET) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue