mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Fixing app crash when clicking Menu or Back buttons while splashscreen is being shown.
This commit is contained in:
parent
e85394dd99
commit
5722d976ce
@ -908,7 +908,9 @@ public class DroidGap extends Activity implements CordovaInterface {
|
||||
this.appView.loadUrl("about:blank");
|
||||
|
||||
// Forward to plugins
|
||||
this.pluginManager.onDestroy();
|
||||
if (this.pluginManager != null) {
|
||||
this.pluginManager.onDestroy();
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.endActivity();
|
||||
@ -924,7 +926,9 @@ public class DroidGap extends Activity implements CordovaInterface {
|
||||
public void postMessage(String id, Object data) {
|
||||
|
||||
// Forward to plugins
|
||||
this.pluginManager.postMessage(id, data);
|
||||
if (this.pluginManager != null) {
|
||||
this.pluginManager.postMessage(id, data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user