mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-03-01 05:19:43 +00:00
Partial revert: fix VideoDetailFragment flickering
Refacor port of: 5155b24ed6
Look at #13132 for more details
This commit is contained in:
@@ -1339,8 +1339,9 @@ class VideoDetailFragment :
|
||||
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED)
|
||||
}
|
||||
// Rebound to the service if it was closed via notification or mini player
|
||||
PlayerHolder.setListener(this@VideoDetailFragment)
|
||||
PlayerHolder.tryBindIfNeeded(requireContext())
|
||||
if (!PlayerHolder.isBound) {
|
||||
PlayerHolder.startService(false, this@VideoDetailFragment)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user