From 076e439ec20896dc2e79ad0ec0bd60a0e760b7cf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 01:59:22 +0000 Subject: [PATCH 1/2] Remove manifest null-forgiving operator Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs b/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs index 87ed37a34eb..b1f45b18e2b 100644 --- a/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs +++ b/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs @@ -138,6 +138,7 @@ public void WriteToFile (string fileName) //the original exception is more important than this one } } + } } @@ -353,9 +354,8 @@ public IEnumerable GetLaunchableActivityNames () { return GetLaunchableActivities () .Select (a => (string?) a.Attribute (aName)) - .Where (name => !string.IsNullOrEmpty (name) && name != "mono.android.__FastDevLauncher") - .Select (name => name!); + .OfType () + .Where (name => !string.IsNullOrEmpty (name) && name != "mono.android.__FastDevLauncher"); } } } - From 8e98d00fb57a9bcec6829b51dfbe6521e3452587 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 01:59:24 +0000 Subject: [PATCH 2/2] Preserve manifest formatting Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs b/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs index b1f45b18e2b..e79ce736975 100644 --- a/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs +++ b/src/Xamarin.Android.Tools.AndroidSdk/AndroidAppManifest.cs @@ -138,7 +138,6 @@ public void WriteToFile (string fileName) //the original exception is more important than this one } } - } } @@ -359,3 +358,4 @@ public IEnumerable GetLaunchableActivityNames () } } } +