mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
fix crash
This commit is contained in:
parent
f3b8433f1b
commit
1e2d92f088
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user