shortening some code
This commit is contained in:
parent
b2da6f5080
commit
f187a36ebb
2 changed files with 6 additions and 8 deletions
|
@ -497,12 +497,10 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
|
|||
}
|
||||
|
||||
private fun skip(forward: Boolean) {
|
||||
if (mExoPlayer == null) {
|
||||
return
|
||||
}
|
||||
|
||||
if (mExoPlayer != null) {
|
||||
doSkip(forward)
|
||||
}
|
||||
}
|
||||
|
||||
private fun doSkip(forward: Boolean) {
|
||||
val curr = mExoPlayer!!.currentPosition
|
||||
|
|
Loading…
Reference in a new issue