From 501f4689949c2c7dbfa031ea0b814d96df92afc3 Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Thu, 7 Dec 2017 18:05:49 +0900 Subject: [PATCH] add BroadcastReceiverAttribute.Description property. (fix bug #60940) There is some grand idea to generate all those attributes code, but it's going to take long time and this bug shouldn't need to wait for that. This bug can be fixed with just a few lines of changes. --- .../Mono.Android/BroadcastReceiverAttribute.Partial.cs | 5 +++++ .../Android.Content/BroadcastReceiverAttribute.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/src/Xamarin.Android.Build.Tasks/Mono.Android/BroadcastReceiverAttribute.Partial.cs b/src/Xamarin.Android.Build.Tasks/Mono.Android/BroadcastReceiverAttribute.Partial.cs index 8c390de621a..853dba23083 100644 --- a/src/Xamarin.Android.Build.Tasks/Mono.Android/BroadcastReceiverAttribute.Partial.cs +++ b/src/Xamarin.Android.Build.Tasks/Mono.Android/BroadcastReceiverAttribute.Partial.cs @@ -16,6 +16,11 @@ partial class BroadcastReceiverAttribute { static ManifestDocumentElement mapping = new ManifestDocumentElement ("receiver") { { + "Description", + "description", + self => self.Description, + (self, value) => self.Description = (string) value + }, { "DirectBootAware", "directBootAware", self => self.DirectBootAware, diff --git a/src/Xamarin.Android.NamingCustomAttributes/Android.Content/BroadcastReceiverAttribute.cs b/src/Xamarin.Android.NamingCustomAttributes/Android.Content/BroadcastReceiverAttribute.cs index b84d8c54107..954f38c8bc2 100644 --- a/src/Xamarin.Android.NamingCustomAttributes/Android.Content/BroadcastReceiverAttribute.cs +++ b/src/Xamarin.Android.NamingCustomAttributes/Android.Content/BroadcastReceiverAttribute.cs @@ -15,6 +15,7 @@ public BroadcastReceiverAttribute () public bool DirectBootAware {get; set;} public bool Enabled {get; set;} public bool Exported {get; set;} + public string Description {get; set;} public string Icon {get; set;} public string Label {get; set;} public string Name {get; set;}