[Bug]: Splash screen does not display icon on Android 12
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Is there a StackOverflow question about this issue?
- I have searched StackOverflow
What happened?
On a Samsung S20 FE 5G
running:
One UI 4.1
Android 12
When I run the app I see no image showing up on the splash screen. To double check I changed this line of code from installSplashScreen()
to installSplashScreen().apply { this.setKeepOnScreenCondition { true } }
and then I got these two screenshots from the splash screen, in dark and light mode respectively.
dark | light |
---|---|
Is there something I’m misunderstanding from the splash compat library, or is this a bug in the implementation in NiA? As far as I understand, for older android versions, it simply does not support animated icons, but from API 23 and onwards it should still show the icon at least.
For the record, I did also test this on a Pixel 6 Pro running Android 13 and the icon showed up perfectly fine in both dark and light mode.
Relevant logcat output
No response
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
Agreed, it’s not a great iterative experience when trying it out from AS during the normal workflow and not seeing the expected behavior.
I don’t think NiA is doing anything incorrect here, so I’m going to close this issue in favor of the upstream ones.
Thanks again for the issue!
And it turns out it may not even be a dev-only bug, but a feature of AS. Really caught me off-guard tbh, was not expecting this to happen and I was certain there was something wrong in the configuration at first 🤷♂️