Hello everyone,
as stated in the title I would like to prevent the Android Hardware Back button to close a specific modal on the navigation stack.
The modal get's called like:
await Navigation.PushModalAsync(Page, true);
I've tried using
protected override bool OnBackButtonPressed ()
In the Page but it doesn't seem to fire.
I've tried using
public override void OnBackPressed ()
In the MainActivity but I can't find a way to get the currently open modal and prevent it from being popped.
I've been cruising on google / stackoverflow and these forums but I cannot make any of the examples work.
Any help or pointers are greatly appreciated.