diff --git a/src/Uno.UI/BaseActivity.Android.cs b/src/Uno.UI/BaseActivity.Android.cs index 8911a2e1acce..565fde4c23db 100644 --- a/src/Uno.UI/BaseActivity.Android.cs +++ b/src/Uno.UI/BaseActivity.Android.cs @@ -82,7 +82,9 @@ public static IImmutableDictionary Instances /// For more info look at the lifecycle diagram documented here: https://developer.android.com/reference/android/app/Activity.html. /// /// - public static BaseActivity Current => _current; +#nullable enable + public static BaseActivity? Current => _current; +#nullable disable /// /// Gets the first BaseActivity which is set as current. Unlike the , this method will wait until a BaseActivity is set as Current.