afunc
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
0 deletions
-
src/Android/Avalonia.Android/AvaloniaMainActivity.cs
|
|
|
@ -31,6 +31,8 @@ public class AvaloniaMainActivity : AvaloniaActivity |
|
|
|
// We need this AfterSetup callback to match iOS/Browser behavior and ensure that view/toplevel is available in custom AfterSetup calls.
|
|
|
|
if (Lifetime is not null) |
|
|
|
{ |
|
|
|
initialContent ??= Lifetime.MainView; |
|
|
|
|
|
|
|
Lifetime.Activity = this; |
|
|
|
_view = new AvaloniaView(this) { Content = initialContent }; |
|
|
|
} |
|
|
|
|