Skip to content

Commit dcfda05

Browse files
authored
fix(splash-screen): call clearOnExitAnimationListener on animation end (#2379)
1 parent e5272b1 commit dcfda05

File tree

1 file changed

+3
-0
lines changed
  • splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen

1 file changed

+3
-0
lines changed

splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ private void showWithAndroid12API(final AppCompatActivity activity, final Splash
121121
public void onAnimationEnd(Animator animation) {
122122
isHiding = false;
123123
windowSplashScreenView.remove();
124+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
125+
activity.getSplashScreen().clearOnExitAnimationListener();
126+
}
124127
}
125128
}
126129
);

0 commit comments

Comments
 (0)