Skip to content

Commit

Permalink
[CB-423] Problem displaying patch-9 splash screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
brycecurtis committed Apr 2, 2012
1 parent 5fa77e9 commit a37d069
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/src/org/apache/cordova/CordovaChromeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ else if (message.equals("getToken")) {
// 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");
Expand Down
3 changes: 3 additions & 0 deletions framework/src/org/apache/cordova/CordovaWebViewClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ public void run() {
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();
}
Expand Down

0 comments on commit a37d069

Please sign in to comment.