mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-15 03:20:54 +01:00
removing a redundant function
This commit is contained in:
parent
4c2c330cbc
commit
be8f6762c5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user