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
@ -375,12 +375,7 @@ public class DroidGap extends PhonegapActivity {
|
|||||||
if (!url.startsWith("javascript:")) {
|
if (!url.startsWith("javascript:")) {
|
||||||
LOG.d(TAG, "DroidGap.loadUrl(%s)", url);
|
LOG.d(TAG, "DroidGap.loadUrl(%s)", url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init web view if not already done
|
|
||||||
if (this.appView == null) {
|
|
||||||
this.init();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.url = url;
|
this.url = url;
|
||||||
if (this.baseUrl == null) {
|
if (this.baseUrl == null) {
|
||||||
int i = url.lastIndexOf('/');
|
int i = url.lastIndexOf('/');
|
||||||
@ -400,6 +395,11 @@ public class DroidGap extends PhonegapActivity {
|
|||||||
this.runOnUiThread(new Runnable() {
|
this.runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
|
// Init web view if not already done
|
||||||
|
if (me.appView == null) {
|
||||||
|
me.init();
|
||||||
|
}
|
||||||
|
|
||||||
// Handle activity parameters
|
// Handle activity parameters
|
||||||
me.handleActivityParameters();
|
me.handleActivityParameters();
|
||||||
|
|
||||||
@ -520,6 +520,9 @@ public class DroidGap extends PhonegapActivity {
|
|||||||
// Handle activity parameters
|
// Handle activity parameters
|
||||||
this.runOnUiThread(new Runnable() {
|
this.runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (me.appView == null) {
|
||||||
|
me.init();
|
||||||
|
}
|
||||||
me.handleActivityParameters();
|
me.handleActivityParameters();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user