Fix splashscreen not showing <= API 30 #4889
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Task/Issue URL: https://app.asana.com/0/1207908166761516/1206826738295232/f
Description
The splashscreen was not showing on devices on devices <= API 30.
To fix this I used the spashscreen-compat library and removed the need for dedicated splashscreen styles on API 31+ as the compat library will take of that for us.
The splashscreen is very quick on a warm start on <= API 30 (see the demos) but I don’t think it’s worth adding any kind of artificial delay to show it for a longer period.
Steps to test this PR
If you have a device that’s <= API 31 to test then please do! Unfortunately I do not have a device on hand at that API level.
UI changes
API 26 before shown as a demo for all devices < 30
I’ve provided some before videos on actual devices on >= API 30
api26before.mp4
api26.webm
api27.webm
api28.webm
api29.webm
oneplus-api30-before.mp4
oneplus-api30.mp4
pixel3_api31_before.mp4
pixel3-api31.mp4
api32.webm
pixel4a_api33_before.mp4
pixel4a-api33.mp4
pixel8pro_api34_before.mp4
pixel8pro_api34_after.mp4
api35.webm