Bug P4
Status Update
Comments
EL...@terryberry.com <EL...@terryberry.com> #2
I discovered an interesting path to reproduce. If I remove persistentState from my onCreate method the splashscreen works so apparently it seems using that parameter is the root of the issue.
de...@gmail.com <de...@gmail.com> #3
I struggled a lot on the same issue, the problem is this new SPLASH API seems to be incompatible with DaggerAppCompatActivity. Calling setOnExitAnimationListener is the culprit.
va...@gmail.com <va...@gmail.com> #4
I can see this crash only on Android 12+ and only for Samsung devices, on Google Pixel 6 it's running as expected.
ji...@gmail.com <ji...@gmail.com> #5
am...@mirego.com <am...@mirego.com> #6
Did anyone find a fix/workaround for this? We're having the same issue and it's causing multiple crashes
ch...@gmail.com <ch...@gmail.com> #7
Still no fix for this? Having the same issue.
g....@gmail.com <g....@gmail.com> #8
I also have this issue, only happens on a Pixel 6 with Android 14. Tested it with a Pixel 7 and an emulator both with Android 14 and the issue does not occur. This is obviously a blocker from using the "new" Splashscreen API so we'll probably revert it as a consequence until the bug is resolved
Description
Artifact used (ex. androidx.appcompat:appcompat:1.0.0-alpha1): androidx.core:core-splashscreen Version used: 1.0.0-beta02 Theme used: Theme.SplashScreen Devices/Android versions reproduced on: Android 11 Pixel 3a emulator
Relevant code to trigger the issue.
override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) { val splashScreen = installSplashScreen()
}
When I try to debug my app, it crashes with the error "You need to use a Theme.AppCompat theme (or descendant) with this activity."
I follow the migration article exactly (https://developer.android.com/guide/topics/ui/splash-screen/migrate ) and it keeps complaining about the theme even though I'm using the correct one, this happens even on a clean application so I'm starting to feel like the library is to blame.
Here is the full stack trace I get from the debug console:
If I need to provide any additional information, please let me know.