1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-25 00:16:56 +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(); setupBottomPlayer();
if (!playerHolder.isBound()) { if (playerHolder.isNotBoundYet()) {
setHeightThumbnail(); setHeightThumbnail();
} else { } else {
playerHolder.startService(false, this); playerHolder.startService(false, this);
@ -1383,7 +1383,7 @@ public final class VideoDetailFragment
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED); bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
} }
// Rebound to the service if it was closed via notification or mini player // Rebound to the service if it was closed via notification or mini player
if (!playerHolder.isBound()) { if (playerHolder.isNotBoundYet()) {
playerHolder.startService( playerHolder.startService(
false, VideoDetailFragment.this); false, VideoDetailFragment.this);
} }

View File

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