mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
[CB-423] Problem displaying patch-9 splash screen.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user