make video fast-forwarding with horizontal gestures easier in landscape mode

This commit is contained in:
tibbi 2019-01-04 22:05:37 +01:00
parent 4be9c0b431
commit fe9d34295a

View file

@ -377,7 +377,8 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
video_surface.layoutParams = this
}
mScreenWidth = (screenWidth * 0.8).toInt()
val multiplier = if (screenWidth > screenHeight) 0.5 else 0.8
mScreenWidth = (screenWidth * multiplier).toInt()
}
private fun changeOrientation() {