Browse Source
* use androidx lib for backpressed callback
* Update API suppressions
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
(cherry picked from commit 1ae9694f78)
release/11.3.10
committed by
Julien Lebosquain
3 changed files with 23 additions and 5 deletions
@ -0,0 +1,15 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
using AndroidX.Activity; |
|||
|
|||
namespace Avalonia.Android |
|||
{ |
|||
internal class BackPressedCallback(AvaloniaActivity activity) : OnBackPressedCallback(true) |
|||
{ |
|||
public override void HandleOnBackPressed() |
|||
{ |
|||
activity.OnBackInvoked(); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue