Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splash screen fixed on Android Lollipop #60

Merged
merged 1 commit into from
Nov 5, 2021
Merged

Splash screen fixed on Android Lollipop #60

merged 1 commit into from
Nov 5, 2021

Conversation

philips77
Copy link
Member

Apparently, the Splash Screen compat library draws the icon only on API 23+ (link), while it can draw the background on API 21+. As we're not interested in just the background, the Splash Screen lib will only be shown from Marshmallow onward.

Also, since postSplashScreenTheme is optional and can be replaced with setTheme(..) in the Activity (source), this approach has been selected to avoid different implementations based on the Android version. Now the theme is set for all targets in onCreate.

@philips77 philips77 merged commit 76635bb into main Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant