From cfc6d74506f5b83c2685a3f80a8d8ebd58c5aa5c Mon Sep 17 00:00:00 2001 From: daserge Date: Fri, 18 Dec 2015 17:18:20 +0300 Subject: [PATCH] CB-10231 Fix FadeSplashScreen to default to true on iOS --- src/ios/CDVSplashScreen.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m index a1add30..76b1c9f 100644 --- a/src/ios/CDVSplashScreen.m +++ b/src/ios/CDVSplashScreen.m @@ -331,7 +331,12 @@ float fadeDuration = fadeSplashScreenDuration == nil ? kSplashScreenDurationDefault : [fadeSplashScreenDuration floatValue]; - if ((fadeSplashScreenValue == nil) || ![fadeSplashScreenValue boolValue]) + if (fadeSplashScreenValue == nil) + { + fadeSplashScreenValue = @"true"; + } + + if (![fadeSplashScreenValue boolValue]) { fadeDuration = 0; } @@ -341,7 +346,7 @@ // they mean 10 seconds, and not the meaningless 10ms fadeDuration *= 1000; } - + if (_visible) { if (_imageView == nil)