|
|
@ -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.
|
|
|
// 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) |
|
|
if (Lifetime is not null) |
|
|
{ |
|
|
{ |
|
|
|
|
|
initialContent ??= Lifetime.MainView; |
|
|
|
|
|
|
|
|
Lifetime.Activity = this; |
|
|
Lifetime.Activity = this; |
|
|
_view = new AvaloniaView(this) { Content = initialContent }; |
|
|
_view = new AvaloniaView(this) { Content = initialContent }; |
|
|
} |
|
|
} |
|
|
|