Merge pull request #13258 from dustdfg/regression-detailfragment-flickers-refactor

Backport #13132 to refactor branch
This commit is contained in:
Clippy 2026-02-19 08:58:17 +00:00 committed by GitHub
commit 8b28bd1a18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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