Skip to content

Commit

Permalink
fix: crashes on preview version
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz committed Jun 8, 2024
1 parent 8433c76 commit 4bd4a9d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/src/main/java/live/mehiz/mpvkt/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
}
}
}
Expand Down

0 comments on commit 4bd4a9d

Please sign in to comment.