Fix a bug that resetted ExoPlayer repeat mode when resuming the activity

This commit is contained in:
vfsfitvnm 2022-06-07 23:12:19 +02:00
parent 3391b4f056
commit 5d1754b6c7

View file

@ -119,8 +119,10 @@ class MainActivity : ComponentActivity() {
LocalShimmerTheme provides shimmerTheme,
LocalTypography provides rememberTypography(colorPalette.text),
LocalYoutubePlayer provides rememberYoutubePlayer(mediaControllerFuture) {
it.repeatMode = preferences.repeatMode
},
if (preferences.isReady) {
it.repeatMode = preferences.repeatMode
}
},
LocalMenuState provides rememberMenuState(),
LocalHapticFeedback provides rememberHapticFeedback()
) {