From ec306f83dc5efb85858124c61612bc1015b016db Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 9 Sep 2022 18:20:06 +0200 Subject: [PATCH] fix forward btn --- .../java/com/github/libretube/views/CustomExoPlayerView.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt b/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt index 4d20851b2..657e9052e 100644 --- a/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt +++ b/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt @@ -227,7 +227,7 @@ internal class CustomExoPlayerView( player?.seekTo((player?.currentPosition ?: 0L) - seekIncrement) // show the rewind button - doubleTapOverlayBinding?.rewindBTN.run { + doubleTapOverlayBinding?.rewindBTN.apply { this!!.visibility = View.VISIBLE // clear previous animation this.animate().rotation(0F).setDuration(0).start() @@ -252,9 +252,9 @@ internal class CustomExoPlayerView( // show the forward button doubleTapOverlayBinding?.forwardBTN.apply { - visibility = View.VISIBLE + this!!.visibility = View.VISIBLE // clear previous animation - this!!.animate().rotation(0F).setDuration(0).start() + this.animate().rotation(0F).setDuration(0).start() // start new animation this.animate() .rotation(30F)