From 5de8221f4a08d4a78cc75b96f08a1abfb22693dd Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Wed, 26 Oct 2022 11:44:24 +0200 Subject: [PATCH] Fix #518 --- app/src/main/kotlin/it/vfsfitvnm/vimusic/MainActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/MainActivity.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/MainActivity.kt index 231ec04..d50f36d 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/MainActivity.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/MainActivity.kt @@ -48,6 +48,8 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.platform.LocalDensity +import androidx.compose.ui.platform.LocalLayoutDirection +import androidx.compose.ui.unit.LayoutDirection import androidx.compose.ui.unit.coerceIn import androidx.compose.ui.unit.dp import androidx.core.view.WindowCompat @@ -341,7 +343,8 @@ class MainActivity : ComponentActivity() { LocalRippleTheme provides rippleTheme, LocalShimmerTheme provides shimmerTheme, LocalPlayerServiceBinder provides binder, - LocalPlayerAwareWindowInsets provides playerAwareWindowInsets + LocalPlayerAwareWindowInsets provides playerAwareWindowInsets, + LocalLayoutDirection provides LayoutDirection.Ltr ) { HomeScreen( onPlaylistUrl = { url ->