Max Katz
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
src/Android/Avalonia.Android/Platform/AndroidActivatableLifetime.cs
|
|
|
@ -32,8 +32,8 @@ internal class AndroidActivatableLifetime : IActivatableLifetime |
|
|
|
public event EventHandler<ActivatedEventArgs> Activated; |
|
|
|
public event EventHandler<ActivatedEventArgs> Deactivated; |
|
|
|
|
|
|
|
public bool TryLeaveBackground() => (_activity as Activity)?.MoveTaskToBack(true) == true; |
|
|
|
public bool TryEnterBackground() => false; |
|
|
|
public bool TryLeaveBackground() => false; |
|
|
|
public bool TryEnterBackground() => (_activity as Activity)?.MoveTaskToBack(true) == true; |
|
|
|
|
|
|
|
private void ActivityOnDeactivated(object sender, ActivatedEventArgs e) |
|
|
|
{ |
|
|
|
|