Gonzalo Renedo
11/24/2022, 7:25 PMPlease someone help me, yesterday I upgraded my phone to android 12 version, since then if I put installSplashScren() or something else before the setContent{} of the MainActivity.kt it fails and doesn't pass to the NavGraph(), when I remove it If it works fine, I don't understand what happens because navGraph doesn't work for me now and any other composable does, and the other way also works for me, removing the installSplashScreen if navGraph() works for me. I don't understand anything...
Stylianos Gakis
11/24/2022, 7:32 PMGonzalo Renedo
11/24/2022, 8:56 PMStylianos Gakis
11/24/2022, 8:57 PMColton Idle
11/25/2022, 4:46 AMColton Idle
11/25/2022, 4:46 AMGonzalo Renedo
11/29/2022, 11:50 PMGonzalo Renedo
11/29/2022, 11:50 PM@AndroidEntryPoint
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
installSplashScreen()
setContent {
PaparcarComposeTheme {
NavGraph()
}
}
}
}
Gonzalo Renedo
11/29/2022, 11:54 PMSomething very strange happens to me, when I run the app, the screen stays blank but when I touch the screen as if I were dragging my finger, that's when it loads, I don't understand anything, but if I remove the splash it works fine, I've also tried to do it in a different activity just for the splash, but when I go to the next activity, when I put the theme I want to the MainActivity from the Manifest with andriod:theme, the same thing happens to me, it kind of stays blank, instead If I don't put the theme, it works fine (I need the theme because I don't want the app bar that comes by default in Android)