mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(view): expose method for android back override (#5537)
Expose method on View class onBackPressed(). Third party controls like RadSideDrawer can use this method to override the default Android back button handling. By default the app closes.
This commit is contained in:
@@ -115,7 +115,7 @@ function initializeDialogFragment() {
|
||||
};
|
||||
view.notify(args);
|
||||
|
||||
if (!args.cancel && !view._onBackPressed()) {
|
||||
if (!args.cancel && !view.onBackPressed()) {
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user