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