Skip to content

Commit

Permalink
fix(SplashScreen): show method not resolving if autoHide is false (#3144
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sergiomilici authored Jun 29, 2020
1 parent 7b9ac92 commit 28a0e42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/capacitor/src/main/java/com/getcapacitor/Splash.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ public void run() {
}
}
}, showDuration);
} else {
// If no autoHide, call complete
if (splashListener != null) {
splashListener.completed();
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions ios/Capacitor/Capacitor/Plugins/SplashScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ public class CAPSplashScreenPlugin: CAPPlugin {
self.hideSplash(fadeOutDuration: fadeOutDuration, isLaunchSplash: isLaunchSplash)
completion()
}
} else {
completion()
}
}
}
Expand Down

0 comments on commit 28a0e42

Please sign in to comment.