mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-21 08:05:19 +08:00
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:
parent
141bbfb051
commit
297f862ccc
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user