1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-09 17:00:32 +00:00

PlayerHolder: invert isBound

This commit is contained in:
Profpatsch 2024-12-26 00:26:59 +01:00
parent a78bed700a
commit 8d15a141b1
2 changed files with 4 additions and 4 deletions

View File

@ -657,7 +657,7 @@ public final class VideoDetailFragment
});
setupBottomPlayer();
if (!playerHolder.isBound()) {
if (playerHolder.isNotBoundYet()) {
setHeightThumbnail();
} else {
playerHolder.startService(false, this);
@ -1383,7 +1383,7 @@ public final class VideoDetailFragment
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
}
// Rebound to the service if it was closed via notification or mini player
if (!playerHolder.isBound()) {
if (playerHolder.isNotBoundYet()) {
playerHolder.startService(
false, VideoDetailFragment.this);
}

View File

@ -81,8 +81,8 @@ public final class PlayerHolder {
return player != null && player.getPlayQueue() != null;
}
public boolean isBound() {
return bound;
public boolean isNotBoundYet() {
return !bound;
}
public int getQueueSize() {