Update splash screen to properly use the Androidx SplashScreen library #4413
+22
−69
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.
The Androidx SplashScreen library is added as a dependency to the project but isn't properly enabled in the current code. This pull request configures the splash screen properly.
SplashScreenActivity
which is not needed and useMainActivity
as main entry point to the application.MainActivity
inherits fromBaseActivity
which already detects if no account is configured and redirects toLoginActivity
if needed, just likeSplashScreenActivity
.MainActivity.onCreate()
.postSplashScreenTheme
attribute in SplashTheme, letBaseActivity
set it according to the user settings.MainActivity.onCreate()
, keep the splash screen shown untilLoginActivity
appears.LoginActivity
when no account is available because the detection happens inonCreate()
and an Activity that finishes itself inonCreate()
will not be drawn, so the slide-in animation will not be visible either and onlyLoginActivity
will appear.core-splashscreen
to 1.2.0-alpha01 which contains a fix for corrupted app theme on API 31+.