Skip to content

Commit 28a0e42

Browse files
authored
fix(SplashScreen): show method not resolving if autoHide is false (#3144)
1 parent 7b9ac92 commit 28a0e42

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

android/capacitor/src/main/java/com/getcapacitor/Splash.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ public void run() {
243243
}
244244
}
245245
}, showDuration);
246+
} else {
247+
// If no autoHide, call complete
248+
if (splashListener != null) {
249+
splashListener.completed();
250+
}
246251
}
247252
}
248253

ios/Capacitor/Capacitor/Plugins/SplashScreen.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ public class CAPSplashScreenPlugin: CAPPlugin {
183183
self.hideSplash(fadeOutDuration: fadeOutDuration, isLaunchSplash: isLaunchSplash)
184184
completion()
185185
}
186+
} else {
187+
completion()
186188
}
187189
}
188190
}

0 commit comments

Comments
 (0)