mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Fix Issue #23 - Crash when using splash screen.
This commit is contained in:
parent
a6db1112c6
commit
cbdd400fe7
@ -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();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user