mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
commit
1c7592e984
@ -178,12 +178,14 @@ class PlayerFragment : Fragment() {
|
||||
val mainMotionLayout =
|
||||
mainActivity.findViewById<MotionLayout>(R.id.mainMotionLayout)
|
||||
if (currentId == eId) {
|
||||
view.findViewById<ImageButton>(R.id.exo_play_pause).visibility = View.GONE
|
||||
view.findViewById<ImageButton>(R.id.quality_select).visibility = View.GONE
|
||||
view.findViewById<ImageButton>(R.id.close_imageButton).visibility = View.GONE
|
||||
view.findViewById<TextView>(R.id.quality_text).visibility = View.GONE
|
||||
view.findViewById<ImageButton>(R.id.aspect_ratio_button).visibility = View.GONE
|
||||
mainMotionLayout.progress = 1.toFloat()
|
||||
} else if (currentId == sId) {
|
||||
view.findViewById<ImageButton>(R.id.exo_play_pause).visibility = View.VISIBLE
|
||||
view.findViewById<ImageButton>(R.id.quality_select).visibility = View.VISIBLE
|
||||
view.findViewById<ImageButton>(R.id.close_imageButton).visibility = View.VISIBLE
|
||||
view.findViewById<TextView>(R.id.quality_text).visibility = View.VISIBLE
|
||||
|
Loading…
Reference in New Issue
Block a user