From 297f862ccc20de9506a5d5296f98ce5724dc43c0 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Mon, 23 Jun 2014 14:18:54 -0400 Subject: [PATCH] Delete explicit activity.finish() in back button handling. No change in behaviour. The default handling calls through to Activity.onBackPressed(), which by default results in activity.finish(), but can be customized by the app. --- framework/src/org/apache/cordova/CordovaWebView.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index bb51a7a9..3b3f80d3 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -775,12 +775,6 @@ public class CordovaWebView extends WebView { return true; } // If not, then invoke default behavior - else { - //this.activityState = ACTIVITY_EXITING; - //return false; - // If they hit back button when app is initializing, app should exit instead of hang until initialization (CB2-458) - this.cordova.getActivity().finish(); - } } } }