mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-09 17:00:32 +00:00
PlayerHolder: invert isBound
This commit is contained in:
parent
a78bed700a
commit
8d15a141b1
@ -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);
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user