From 4bd4a9dfba33d6daaf0f4eebbb8ce49728055cea Mon Sep 17 00:00:00 2001 From: AbdallahMehiz Date: Sat, 8 Jun 2024 03:05:36 +0100 Subject: [PATCH] fix: crashes on preview version --- app/src/main/java/live/mehiz/mpvkt/MainActivity.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/live/mehiz/mpvkt/MainActivity.kt b/app/src/main/java/live/mehiz/mpvkt/MainActivity.kt index abe141a..6d07f60 100644 --- a/app/src/main/java/live/mehiz/mpvkt/MainActivity.kt +++ b/app/src/main/java/live/mehiz/mpvkt/MainActivity.kt @@ -3,9 +3,7 @@ package live.mehiz.mpvkt import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent -import androidx.activity.enableEdgeToEdge import cafe.adriel.voyager.navigator.Navigator -import cafe.adriel.voyager.transitions.SlideTransition import live.mehiz.mpvkt.ui.home.HomeScreen import live.mehiz.mpvkt.ui.theme.MpvKtTheme @@ -14,9 +12,10 @@ class MainActivity : ComponentActivity() { super.onCreate(savedInstanceState) setContent { MpvKtTheme { - Navigator(HomeScreen) { - SlideTransition(navigator = it) - } + // TODO: add transitions back once these two issues get fixed, thanks Google, very cool! + // https://github.com/adrielcafe/voyager/issues/410 + // https://github.com/adrielcafe/voyager/issues/431 + Navigator(HomeScreen) } } }