[CB-423] Problem displaying patch-9 splash screen.

This commit is contained in:
Bryce Curtis 2012-04-02 11:34:57 -05:00
parent 5fa77e97bd
commit a37d0699db
2 changed files with 6 additions and 0 deletions

View File

@ -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");

View File

@ -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();
} }