Skip to content

Commit 734e05c

Browse files
committed
Fixes crash due to background display of Dialogs
1 parent 4c46ea7 commit 734e05c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/src/main/java/com/remobile/splashscreen/RCTSplashScreen.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public void run() {
118118
}
119119
splashDialog.setContentView(splashImageView);
120120
splashDialog.setCancelable(false);
121-
splashDialog.show();
121+
if (!activity.isFinishing()) {
122+
splashDialog.show();
123+
}
122124
}
123125
});
124126
}

0 commit comments

Comments
 (0)