We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b76c5b8 commit 6a582aeCopy full SHA for 6a582ae
android/src/main/java/org/devio/rn/splashscreen/SplashScreen.java
@@ -78,14 +78,14 @@ public static void hide(Activity activity) {
78
_activity.runOnUiThread(new Runnable() {
79
@Override
80
public void run() {
81
- if (mSplashDialog != null && mSplashDialog.isShowing() && !_activity.isFinishing()) {
+ if (mSplashDialog != null && mSplashDialog.isShowing()) {
82
boolean isDestroyed = false;
83
84
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
85
isDestroyed = _activity.isDestroyed();
86
}
87
88
- if (!isDestroyed) {
+ if (!_activity.isFinishing() && !isDestroyed) {
89
mSplashDialog.dismiss();
90
91
mSplashDialog = null;
0 commit comments