mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
[CB-423] Problem displaying patch-9 splash screen.
This commit is contained in:
parent
5fa77e97bd
commit
a37d0699db
@ -216,6 +216,9 @@ public class CordovaChromeClient extends WebChromeClient {
|
|||||||
// Cordova JS has initialized, so show webview
|
// Cordova JS has initialized, so show webview
|
||||||
// (This solves white flash seen when rendering HTML)
|
// (This solves white flash seen when rendering HTML)
|
||||||
else if (reqOk && defaultValue != null && defaultValue.equals("gap_init:")) {
|
else if (reqOk && defaultValue != null && defaultValue.equals("gap_init:")) {
|
||||||
|
if (ctx.splashscreen != 0) {
|
||||||
|
ctx.root.setBackgroundResource(0);
|
||||||
|
}
|
||||||
ctx.appView.setVisibility(View.VISIBLE);
|
ctx.appView.setVisibility(View.VISIBLE);
|
||||||
ctx.spinnerStop();
|
ctx.spinnerStop();
|
||||||
result.confirm("OK");
|
result.confirm("OK");
|
||||||
|
@ -229,6 +229,9 @@ public class CordovaWebViewClient extends WebViewClient {
|
|||||||
Thread.sleep(2000);
|
Thread.sleep(2000);
|
||||||
ctx.runOnUiThread(new Runnable() {
|
ctx.runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (ctx.splashscreen != 0) {
|
||||||
|
ctx.root.setBackgroundResource(0);
|
||||||
|
}
|
||||||
ctx.appView.setVisibility(View.VISIBLE);
|
ctx.appView.setVisibility(View.VISIBLE);
|
||||||
ctx.spinnerStop();
|
ctx.spinnerStop();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user