Fix Issue #23 - Crash when using splash screen.

This commit is contained in:
Bryce Curtis 2011-11-15 23:13:49 -06:00
parent a6db1112c6
commit cbdd400fe7

View File

@ -376,11 +376,6 @@ public class DroidGap extends PhonegapActivity {
LOG.d(TAG, "DroidGap.loadUrl(%s)", url);
}
// Init web view if not already done
if (this.appView == null) {
this.init();
}
this.url = url;
if (this.baseUrl == null) {
int i = url.lastIndexOf('/');
@ -400,6 +395,11 @@ public class DroidGap extends PhonegapActivity {
this.runOnUiThread(new Runnable() {
public void run() {
// Init web view if not already done
if (me.appView == null) {
me.init();
}
// Handle activity parameters
me.handleActivityParameters();
@ -520,6 +520,9 @@ public class DroidGap extends PhonegapActivity {
// Handle activity parameters
this.runOnUiThread(new Runnable() {
public void run() {
if (me.appView == null) {
me.init();
}
me.handleActivityParameters();
}
});