From ea9b34bb2c4ffb0cec9a1651407fbd6199a407a8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Aug 2026 02:21:52 +0000 Subject: [PATCH 1/2] Initial plan From c76a28ab7a7f653874595ed35d5236d725b159e5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Aug 2026 02:43:22 +0000 Subject: [PATCH 2/2] Enable nullable analysis for LayoutAttribute Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com> --- .../Mono.Android/LayoutAttribute.Partial.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Xamarin.Android.Build.Tasks/Mono.Android/LayoutAttribute.Partial.cs b/src/Xamarin.Android.Build.Tasks/Mono.Android/LayoutAttribute.Partial.cs index 70d9a81225c..ad44f0f04bd 100644 --- a/src/Xamarin.Android.Build.Tasks/Mono.Android/LayoutAttribute.Partial.cs +++ b/src/Xamarin.Android.Build.Tasks/Mono.Android/LayoutAttribute.Partial.cs @@ -1,4 +1,4 @@ -#nullable disable +#nullable enable using System; using System.Collections.Generic; @@ -22,9 +22,9 @@ partial class LayoutAttribute TypeDefinition? type; ICollection? specified; - public static LayoutAttribute FromTypeDefinition (TypeDefinition type, TypeDefinitionCache cache) + public static LayoutAttribute? FromTypeDefinition (TypeDefinition type, TypeDefinitionCache cache) { - CustomAttribute attr = type.GetCustomAttributes ("Android.App.LayoutAttribute") + CustomAttribute? attr = type.GetCustomAttributes ("Android.App.LayoutAttribute") .SingleOrDefault (); if (attr == null) return null;