Jorge Cardenas created CB-10568:
-----------------------------------

             Summary: SplashScreen 3.1.0 FadeSplashScreen preference not 
working properly in Android
                 Key: CB-10568
                 URL: https://issues.apache.org/jira/browse/CB-10568
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin SplashScreen
    Affects Versions: 3.1.0
         Environment: Android
            Reporter: Jorge Cardenas


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to