Skip to content

Commit 52dff64

Browse files
committed
fix splashscreen on api 30
1 parent eca0dba commit 52dff64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
applicationId "com.github.capntrips.kernelflasher"
1111
minSdk 30
1212
targetSdk 32
13-
versionCode 5
14-
versionName "1.0.0-alpha05"
13+
versionCode 6
14+
versionName "1.0.0-alpha06"
1515

1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1717
vectorDrawables {

app/src/main/java/com/github/capntrips/kernelflasher/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ class MainActivity : ComponentActivity() {
5858

5959
@Suppress("OPT_IN_MARKER_ON_OVERRIDE_WARNING")
6060
override fun onCreate(savedInstanceState: Bundle?) {
61-
installSplashScreen()
61+
val splashScreen = installSplashScreen()
6262
super.onCreate(savedInstanceState)
6363

6464
WindowCompat.setDecorFitsSystemWindows(window, false)
6565

6666
splashScreen.setOnExitAnimationListener { splashScreenView ->
6767
val scale = ObjectAnimator.ofPropertyValuesHolder(
68-
splashScreenView,
68+
splashScreenView.view,
6969
PropertyValuesHolder.ofFloat(
7070
View.SCALE_X,
7171
1f,

0 commit comments

Comments
 (0)