android / android/nowinandroid
[Bug]: Pressing system back button causes app crash when using Splash Screen API
- Dominant language
- Kotlin
- Stars
- 21.8k
- Forks
- 4.6k
- Avg merge
- 19h 20m
- Merged PRs (30d)
- 2
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Is there a StackOverflow question about this issue?
- [x] I have searched StackOverflow
### What happened?
Trying to keep the splash screen for longer period with this `splashScreen.setKeepOnScreenCondition { true }`. App crashes, If back button is pressed, when the splash screen window is showing with icon animating. OnBackPressed callback doesn't event intercept back press, when setKeepOnScreenCondition is set true.
I have used jetpack compose and kotlin and Android version >12.
### Relevant logcat output
```shell
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Research direction
Start by reproducing the crash on Android versions greater than 12 with Jetpack Compose, using splashScreen.setKeepOnScreenCondition { true } and pressing the system back button while the splash icon animates. Inspect the Splash Screen API and OnBackPressed callback behavior; done means the app no longer crashes and back handling is verified in that scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100