Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.1.0
-
None
-
None
-
Android
Description
In the Android java code generated for SplashScreen plugin there is a function "getFadeDuration()".
This function asks for the "FadeSplashScreen" preference and if not found defaults to true and assigns a "FadeSplashScreenDuration" of 3000.
The problem comes when the "SplashScreenDelay" is set for 3000 also, in this case, in the function:
private void showSplashScreen(final boolean hideAfterDelay)
final int effectiveSplashDuration = splashscreenTime - fadeSplashScreenDuration;
the effectiveSplashDuration is set to 0 (3000-3000) and the conditional:
if (drawableId == 0 || (effectiveSplashDuration <= 0 && hideAfterDelay))
{ return; }is resolved as true and the SplashScreen is never shown.
The current workaround is to set the preference "FadeSplashScreen" to false in the config.xml.
I don't know if this is a work as intended.
Regards
Attachments
Issue Links
- is a clone of
-
CB-10422 Splashscreen displays black screen with no image on Android
- Closed