1
0
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:
Yevhen Babiichuk (DustDFG)
2026-02-16 15:16:58 +02:00
parent 3a42827320
commit b6c50ccca5

View File

@@ -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)
}
}
}
}