Fix a bug that resetted ExoPlayer repeat mode when resuming the activity
This commit is contained in:
parent
3391b4f056
commit
5d1754b6c7
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue