mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Removes callbacks when player fragment is destroyed. (#3073)
* Made improvement to player double-tap further. * Minor fixes. * fix ktlint * Filter out null comments returned from Piped API. * Fixes: Labels under icons are not visible * Minor player controls UI improvements * Removes callbacks when player fragment is destroyed. --------- Co-authored-by: Bnyro <bnyro@tutanota.com>
This commit is contained in:
parent
decee78651
commit
5eddd63ed3
@ -577,6 +577,9 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
|
||||
handler.removeCallbacksAndMessages(null)
|
||||
|
||||
try {
|
||||
// disable the auto PiP mode for SDK >= 32
|
||||
disableAutoPiP()
|
||||
|
@ -19,8 +19,8 @@ open class ExpandedBottomSheet : BottomSheetDialogFragment() {
|
||||
|
||||
dialog.setOnShowListener {
|
||||
(it as BottomSheetDialog).let { d ->
|
||||
(d.findViewById<View>(R.id.design_bottom_sheet) as FrameLayout?)?.let {
|
||||
BottomSheetBehavior.from(it).state =
|
||||
(d.findViewById<View>(R.id.design_bottom_sheet) as FrameLayout?)?.let { fl ->
|
||||
BottomSheetBehavior.from(fl).state =
|
||||
BottomSheetBehavior.STATE_EXPANDED
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user