removing a redundant function

This commit is contained in:
tibbi 2020-02-28 22:55:40 +01:00
parent 4c2c330cbc
commit be8f6762c5

View file

@ -159,8 +159,8 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
fullscreenToggled(isFullscreen)
}
video_curr_time.setOnClickListener { skip(false) }
video_duration.setOnClickListener { skip(true) }
video_curr_time.setOnClickListener { doSkip(false) }
video_duration.setOnClickListener { doSkip(true) }
video_toggle_play_pause.setOnClickListener { togglePlayPause() }
video_surface_frame.setOnClickListener { toggleFullscreen() }
video_surface_frame.controller.settings.swallowDoubleTaps = true
@ -496,12 +496,6 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
})
}
private fun skip(forward: Boolean) {
if (mExoPlayer != null) {
doSkip(forward)
}
}
private fun doSkip(forward: Boolean) {
if (mExoPlayer == null) {
return