Update dependencies

This commit is contained in:
topjohnwu
2022-01-14 00:07:19 -08:00
parent a7af8b5722
commit d7b51d2807
3 changed files with 6 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ abstract class BaseMainActivity<VM : BaseViewModel, Binding : ViewDataBinding>
if (!isRunningAsStub) {
val splashScreen = installSplashScreen()
splashScreen.setKeepVisibleCondition { doPreload }
splashScreen.setKeepOnScreenCondition { doPreload }
}
if (doPreload) {

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- For stub on API 31+, we cannot rely on the platform SplashScreen -->
<!-- Force using SplashScreenBase that was used for older APIs -->
<style name="StubSplashTheme" parent="Theme.SplashScreenBase">
<!-- Force using SplashScreen.Common that was used for older APIs -->
<style name="StubSplashTheme" parent="Theme.SplashScreen.Common">
<item name="android:enforceStatusBarContrast">false</item>
<item name="android:enforceNavigationBarContrast">false</item>
<item name="windowSplashScreenBackground">@color/splash_background</item>