Partial revert: fix VideoDetailFragment flickering
Refacor port of: 5155b24ed673e6955ec9ab18572ffd142184bfef Look at #13132 for more details
This commit is contained in:
parent
3a42827320
commit
b6c50ccca5
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user