[
https://issues.apache.org/jira/browse/CB-12099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15780320#comment-15780320
]
ASF GitHub Bot commented on CB-12099:
-------------------------------------
GitHub user daserge opened a pull request:
https://github.com/apache/cordova-android/pull/354
CB-12099 (android) SplashScreen Screen Flicker
<!--
Please make sure the checklist boxes are all checked before submitting the
PR. The checklist
is intended as a quick reference, for complete details please see our
Contributor Guidelines:
http://cordova.apache.org/contribute/contribute_guidelines.html
Thanks!
-->
### Platforms affected
Android
### What does this PR do?
Introduced new SplashScreenBackgroundColor preference.
Platform will now use it or BackgroundColor or BLACK color as
Activity.windowBackground to avoid black flash on start.
Added semver to dependencies (taken bundled version from common, so bundle
change isn't required).
### What testing has been done on this change?
Manual and auto tests
### Checklist
- [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html)
in the JIRA database
- [x] Commit message follows the format: "CB-3232: (android) Fix bug with
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform
affected.
- [ ] Added automated test coverage as appropriate for this change.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/daserge/cordova-android CB-12099
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/354.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #354
----
commit 4a2f60cba3b594570996e89730cdea69243efef7
Author: daserge <[email protected]>
Date: 2016-12-16T17:58:09Z
CB-12099 (android) SplashScreen Screen Flicker
Introduced new SplashScreenBackgroundColor preference.
Platform will now use it or BackgroundColor or BLACK color as
Activity.windowBackground to avoid black flash on start.
Added semver to dependencies (taken bundled version from common, so bundle
change isn't required).
----
> [SplashScreen] AutoHideSplashScreen not respected, Screen Flicker
> -----------------------------------------------------------------
>
> Key: CB-12099
> URL: https://issues.apache.org/jira/browse/CB-12099
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin SplashScreen
> Affects Versions: 4.0.0
> Reporter: Matt Thompson
> Priority: Minor
>
> I'm using Cordova (v6.4.0) and the Splashscreen plugin (v4.0.0)
> (https://github.com/apache/cordova-plugin-splashscreen).
> The various splash screen images I set are displaying on both Android and iOS
> devices. However, on Android devices there is a white flash between the
> splash screen images and my app loading.
> In my Cordova config.xml file, I have the following lines for the splash
> screen:
> {code:xml}
> <preference name="SplashScreenDelay" value="2000" />
> <preference name="ShowSplashScreenSpinner" value="false" />
> {code}
> I tried disabling the splash screen image from automatically hiding and
> increasing the delay before the splash screen hides by adding the additional
> following lines to config.xml:
> {code:xml}
> <preference name="AutoHideSplashScreen" value="false" />
> <preference name="SplashScreenDelay" value="10000" />
> {code}
> Because auto hide is false and the delay is 10 seconds, I should see the
> static loading image for a full 10 seconds, but on both iOS and Android it
> only displays for a second or two. I'm guessing that is the root of the
> problem.
> Once auto hide can be disabled, I hoped to manually trigger hiding the splash
> screen within my app's main init function using:
> {code:javascript}
> navigator.splashscreen.hide();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]