From e4a992095f447765af21b3116b7591addcd6cb5d Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Tue, 25 Oct 2011 14:57:55 -0500 Subject: [PATCH] Set activity state correctly when ending activity. --- framework/src/com/phonegap/DroidGap.java | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 956b4d61..909f96d2 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -1442,6 +1442,7 @@ public boolean onKeyDown(int keyCode, KeyEvent event) { // If not, then invoke behavior of super class else { + this.activityState = ACTIVITY_EXITING; return super.onKeyDown(keyCode, event); } }