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