You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jorge Cardenas (JIRA)" <ji...@apache.org> on 2016/02/09 13:57:18 UTC

[jira] [Created] (CB-10568) SplashScreen 3.1.0 FadeSplashScreen preference not working properly in Android

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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org