diff --git a/framework/src/org/apache/cordova/CordovaActivity.java b/framework/src/org/apache/cordova/CordovaActivity.java index 6220cf7f..0c0212c3 100755 --- a/framework/src/org/apache/cordova/CordovaActivity.java +++ b/framework/src/org/apache/cordova/CordovaActivity.java @@ -662,9 +662,6 @@ protected void onResume() { @Override public void onDestroy() { LOG.d(TAG, "CordovaActivity.onDestroy()"); - super.onDestroy(); - if (this.appView != null) - this.appView.onDestroy(); // hide the splash screen to avoid leaking a window this.removeSplashScreen(); @@ -675,6 +672,8 @@ public void onDestroy() { else { this.activityState = ACTIVITY_EXITING; } + + super.onDestroy(); } /**