From be8f6762c54425188f56887df352f575b9a78f9d Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 28 Feb 2020 22:55:40 +0100 Subject: [PATCH] removing a redundant function --- .../gallery/pro/activities/VideoPlayerActivity.kt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt index 282b7d165..ef1a6d537 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt @@ -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