fix forward btn

This commit is contained in:
Bnyro 2022-09-09 18:20:06 +02:00
parent d354c2b3cc
commit ec306f83dc

View File

@ -227,7 +227,7 @@ internal class CustomExoPlayerView(
player?.seekTo((player?.currentPosition ?: 0L) - seekIncrement) player?.seekTo((player?.currentPosition ?: 0L) - seekIncrement)
// show the rewind button // show the rewind button
doubleTapOverlayBinding?.rewindBTN.run { doubleTapOverlayBinding?.rewindBTN.apply {
this!!.visibility = View.VISIBLE this!!.visibility = View.VISIBLE
// clear previous animation // clear previous animation
this.animate().rotation(0F).setDuration(0).start() this.animate().rotation(0F).setDuration(0).start()
@ -252,9 +252,9 @@ internal class CustomExoPlayerView(
// show the forward button // show the forward button
doubleTapOverlayBinding?.forwardBTN.apply { doubleTapOverlayBinding?.forwardBTN.apply {
visibility = View.VISIBLE this!!.visibility = View.VISIBLE
// clear previous animation // clear previous animation
this!!.animate().rotation(0F).setDuration(0).start() this.animate().rotation(0F).setDuration(0).start()
// start new animation // start new animation
this.animate() this.animate()
.rotation(30F) .rotation(30F)