mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
Fix the visibility of the 'add to queue' btn
This commit is contained in:
parent
2ce5c79728
commit
7af4f20e53
@ -343,15 +343,13 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
|||||||
// actions that don't depend on video information
|
// actions that don't depend on video information
|
||||||
private fun initializeOnClickActions() {
|
private fun initializeOnClickActions() {
|
||||||
binding.closeImageView.setOnClickListener {
|
binding.closeImageView.setOnClickListener {
|
||||||
viewModel.isMiniPlayerVisible.value = false
|
PlayingQueue.clear()
|
||||||
binding.playerMotionLayout.transitionToEnd()
|
|
||||||
val mainActivity = activity as MainActivity
|
|
||||||
mainActivity.supportFragmentManager.beginTransaction()
|
|
||||||
.remove(this)
|
|
||||||
.commit()
|
|
||||||
BackgroundHelper.stopBackgroundPlay(requireContext())
|
BackgroundHelper.stopBackgroundPlay(requireContext())
|
||||||
|
killPlayerFragment()
|
||||||
}
|
}
|
||||||
playerBinding.closeImageButton.setOnClickListener {
|
playerBinding.closeImageButton.setOnClickListener {
|
||||||
|
PlayingQueue.clear()
|
||||||
|
BackgroundHelper.stopBackgroundPlay(requireContext())
|
||||||
killPlayerFragment()
|
killPlayerFragment()
|
||||||
}
|
}
|
||||||
playerBinding.autoPlay.visibility = View.VISIBLE
|
playerBinding.autoPlay.visibility = View.VISIBLE
|
||||||
@ -1526,6 +1524,8 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
|||||||
mainActivity.supportFragmentManager.beginTransaction()
|
mainActivity.supportFragmentManager.beginTransaction()
|
||||||
.remove(this)
|
.remove(this)
|
||||||
.commit()
|
.commit()
|
||||||
|
|
||||||
|
onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||||
|
Loading…
Reference in New Issue
Block a user