mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2025-10-03 01:39:38 +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
019a0050d9
commit
a87c6aa1cf
1 changed files with 2 additions and 1 deletions
|
@ -431,7 +431,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