Is it possible to properly use the SplashScreen co...
# compose
f
Is it possible to properly use the SplashScreen compat library (https://developer.android.com/about/versions/12/splash-screen-migration#splashscreen_compat_library) with Jetpack Compose? According to the examples, I would use it like so:
Copy code
class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        installSplashScreen()

        setContent {
            // ...
        }
    }
}
However,
setContent
replaces the root view when it finishes loading, so any custom splash screen animation will not play. Is there a better alternative?
c
File a bug! I was just talking to the dev that implements this and they said to please file a bug. They said that in alpha02 in compose it will attach to decor view instead of root view which should solve the issue. But file a bug and link it and I will send it to them!
f