Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #137 from gaochun/2493
Browse files Browse the repository at this point in the history
Fix issue that app crashs when exit with back key.
  • Loading branch information
huningxin committed Sep 19, 2014
2 parents 1f5f6c6 + 9b3ef6d commit ec197e5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions framework/src/org/apache/cordova/CordovaActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -784,9 +784,6 @@ protected void onResume() {
*/
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();
Expand All @@ -797,6 +794,8 @@ public void onDestroy() {
else {
this.activityState = ACTIVITY_EXITING;
}

super.onDestroy();
}

/**
Expand Down

0 comments on commit ec197e5

Please sign in to comment.