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:
Martin Yankov
2018-03-14 18:15:05 +02:00
committed by GitHub
parent dfa70dd384
commit cf8dcfa40c
5 changed files with 9 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ function initializeDialogFragment() {
};
view.notify(args);
if (!args.cancel && !view._onBackPressed()) {
if (!args.cancel && !view.onBackPressed()) {
super.onBackPressed();
}
}