mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 14:28:00 +01:00
removing a redundant function
This commit is contained in:
parent
4c2c330cbc
commit
be8f6762c5
1 changed files with 2 additions and 8 deletions
|
@ -159,8 +159,8 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
|
||||||
fullscreenToggled(isFullscreen)
|
fullscreenToggled(isFullscreen)
|
||||||
}
|
}
|
||||||
|
|
||||||
video_curr_time.setOnClickListener { skip(false) }
|
video_curr_time.setOnClickListener { doSkip(false) }
|
||||||
video_duration.setOnClickListener { skip(true) }
|
video_duration.setOnClickListener { doSkip(true) }
|
||||||
video_toggle_play_pause.setOnClickListener { togglePlayPause() }
|
video_toggle_play_pause.setOnClickListener { togglePlayPause() }
|
||||||
video_surface_frame.setOnClickListener { toggleFullscreen() }
|
video_surface_frame.setOnClickListener { toggleFullscreen() }
|
||||||
video_surface_frame.controller.settings.swallowDoubleTaps = true
|
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) {
|
private fun doSkip(forward: Boolean) {
|
||||||
if (mExoPlayer == null) {
|
if (mExoPlayer == null) {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue