Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10568

SplashScreen 3.1.0 FadeSplashScreen preference not working properly in Android

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              JCodder Jorge Cardenas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: