mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	PlayerHolder: invert isBound
This commit is contained in:
		| @@ -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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Profpatsch
					Profpatsch