mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 07:10:29 +05:30
22 lines
617 B
Kotlin
22 lines
617 B
Kotlin
|
package xyz.btcland.libretube
|
||
|
|
||
|
import android.annotation.SuppressLint
|
||
|
import android.content.Context
|
||
|
import android.util.AttributeSet
|
||
|
import android.view.MotionEvent
|
||
|
import com.google.android.exoplayer2.ui.PlayerView
|
||
|
|
||
|
internal class CustomExoPlayerView(
|
||
|
context: Context, attributeSet: AttributeSet? = null
|
||
|
) : PlayerView(context, attributeSet) {
|
||
|
|
||
|
@SuppressLint("ClickableViewAccessibility")
|
||
|
override fun onTouchEvent(event: MotionEvent): Boolean {
|
||
|
when (event.action) {
|
||
|
MotionEvent.ACTION_DOWN -> {
|
||
|
showController()
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
}
|