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.
This commit is contained in:
Andrew Grieve 2014-06-23 14:18:54 -04:00
parent 141bbfb051
commit 297f862ccc

View File

@ -775,12 +775,6 @@ public class CordovaWebView extends WebView {
return true; return true;
} }
// If not, then invoke default behavior // 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();
}
} }
} }
} }