We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a42827 commit b6c50ccCopy full SHA for b6c50cc
1 file changed
app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.kt
@@ -1339,8 +1339,9 @@ class VideoDetailFragment :
1339
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED)
1340
}
1341
// Rebound to the service if it was closed via notification or mini player
1342
- PlayerHolder.setListener(this@VideoDetailFragment)
1343
- PlayerHolder.tryBindIfNeeded(requireContext())
+ if (!PlayerHolder.isBound) {
+ PlayerHolder.startService(false, this@VideoDetailFragment)
1344
+ }
1345
1346
1347
0 commit comments