diff --git a/framework/src/org/apache/cordova/CordovaChromeClient.java b/framework/src/org/apache/cordova/CordovaChromeClient.java index e9f8f93e..2344c511 100755 --- a/framework/src/org/apache/cordova/CordovaChromeClient.java +++ b/framework/src/org/apache/cordova/CordovaChromeClient.java @@ -216,6 +216,9 @@ public class CordovaChromeClient extends WebChromeClient { // Cordova JS has initialized, so show webview // (This solves white flash seen when rendering HTML) else if (reqOk && defaultValue != null && defaultValue.equals("gap_init:")) { + if (ctx.splashscreen != 0) { + ctx.root.setBackgroundResource(0); + } ctx.appView.setVisibility(View.VISIBLE); ctx.spinnerStop(); result.confirm("OK"); diff --git a/framework/src/org/apache/cordova/CordovaWebViewClient.java b/framework/src/org/apache/cordova/CordovaWebViewClient.java index 5eb24064..6bddfc35 100755 --- a/framework/src/org/apache/cordova/CordovaWebViewClient.java +++ b/framework/src/org/apache/cordova/CordovaWebViewClient.java @@ -229,6 +229,9 @@ public class CordovaWebViewClient extends WebViewClient { Thread.sleep(2000); ctx.runOnUiThread(new Runnable() { public void run() { + if (ctx.splashscreen != 0) { + ctx.root.setBackgroundResource(0); + } ctx.appView.setVisibility(View.VISIBLE); ctx.spinnerStop(); }