Skip to content

Commit 19cf1f2

Browse files
atsushienojonpryor
authored andcommitted
[Mono.Android] Add BroadcastReceiverAttribute.Description (#1081)
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=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.
1 parent 50c0c15 commit 19cf1f2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Xamarin.Android.Build.Tasks/Mono.Android/BroadcastReceiverAttribute.Partial.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ partial class BroadcastReceiverAttribute {
1616

1717
static ManifestDocumentElement<BroadcastReceiverAttribute> mapping = new ManifestDocumentElement<BroadcastReceiverAttribute> ("receiver") {
1818
{
19+
"Description",
20+
"description",
21+
self => self.Description,
22+
(self, value) => self.Description = (string) value
23+
}, {
1924
"DirectBootAware",
2025
"directBootAware",
2126
self => self.DirectBootAware,

src/Xamarin.Android.NamingCustomAttributes/Android.Content/BroadcastReceiverAttribute.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public BroadcastReceiverAttribute ()
1515
public bool DirectBootAware {get; set;}
1616
public bool Enabled {get; set;}
1717
public bool Exported {get; set;}
18+
public string Description {get; set;}
1819
public string Icon {get; set;}
1920
public string Label {get; set;}
2021
public string Name {get; set;}

0 commit comments

Comments
 (0)