Partial revert: fix VideoDetailFragment flickering

Refacor port of: 5155b24ed673e6955ec9ab18572ffd142184bfef
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)
}
}
}
}