fix crash

This commit is contained in:
Bnyro 2022-09-29 19:43:00 +02:00
parent f3b8433f1b
commit 1e2d92f088

View File

@ -27,6 +27,7 @@ import com.google.android.exoplayer2.ui.AspectRatioFrameLayout
import com.google.android.exoplayer2.ui.StyledPlayerView import com.google.android.exoplayer2.ui.StyledPlayerView
import com.google.android.exoplayer2.util.RepeatModeUtil import com.google.android.exoplayer2.util.RepeatModeUtil
import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.google.android.material.dialog.MaterialAlertDialogBuilder
import kotlin.math.roundToInt
@SuppressLint("ClickableViewAccessibility") @SuppressLint("ClickableViewAccessibility")
internal class CustomExoPlayerView( internal class CustomExoPlayerView(
@ -61,8 +62,10 @@ internal class CustomExoPlayerView(
private val seekIncrement = PreferenceHelper.getString( private val seekIncrement = PreferenceHelper.getString(
PreferenceKeys.SEEK_INCREMENT, PreferenceKeys.SEEK_INCREMENT,
"5" "10.0"
).toLong() * 1000 ).toFloat()
.roundToInt()
.toLong() * 1000
private var resizeModePref = PreferenceHelper.getString( private var resizeModePref = PreferenceHelper.getString(
PreferenceKeys.PLAYER_RESIZE_MODE, PreferenceKeys.PLAYER_RESIZE_MODE,