Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Commit 9d71e20

Browse files
atsushienojonpryor
authored andcommitted
Fix ChoiceMode field types to match expected ones. (#12)
Context: dotnet/android#1170 Context: dotnet/android#1183 Context: dotnet/android@a301764 Xamarin.Android 8.1 (d15-5) provides an `Android.Widget.ChoiceMode` enum type in API-10+. `ChoiceMode` contains the `android.widget.ListView.CHOICE_MODE_*` constants from API-10, which were moved to `android.widget.AbsListView` in API-15. Xamarin.Android 8.2 (d15-6) inadvertently *removed* the `Android.Widget.ChoiceMode` enum, because [xamarin-android/a301764a][xa-a301764a] altered the mapping of the `CHOICE_MODE` constants so that they were only bound into the `Android.Widget.ChoiceMode` enum for API-15+. [xa-a301764a]: dotnet/android@a301764 [xamarin-android PR #1183][xa-1183] fixes `ChoiceMode` generation so that it applies to API-10+, and in the process alters the API tracked within xamarin-android-api-compatibility. [xa-1183]: dotnet/android#1183 Add the `ChoiceMode` API changes so that [PR #1183][xa-1183] passes the API compatibility tests.
1 parent 6a26294 commit 9d71e20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/Mono.Android.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -776331,7 +776331,7 @@
776331776331
<interface name="System.IDisposable" />
776332776332
</interfaces>
776333776333
<fields>
776334-
<field name="ChoiceModeMultiple" attrib="32854" fieldtype="System.Int32" value="2">
776334+
<field name="ChoiceModeMultiple" attrib="32854" fieldtype="Android.Widget.ChoiceMode" value="2">
776335776335
<attributes>
776336776336
<attribute name="Android.Runtime.RegisterAttribute">
776337776337
<properties>
@@ -776340,7 +776340,7 @@
776340776340
</attribute>
776341776341
</attributes>
776342776342
</field>
776343-
<field name="ChoiceModeNone" attrib="32854" fieldtype="System.Int32" value="0">
776343+
<field name="ChoiceModeNone" attrib="32854" fieldtype="Android.Widget.ChoiceMode" value="0">
776344776344
<attributes>
776345776345
<attribute name="Android.Runtime.RegisterAttribute">
776346776346
<properties>
@@ -776349,7 +776349,7 @@
776349776349
</attribute>
776350776350
</attributes>
776351776351
</field>
776352-
<field name="ChoiceModeSingle" attrib="32854" fieldtype="System.Int32" value="1">
776352+
<field name="ChoiceModeSingle" attrib="32854" fieldtype="Android.Widget.ChoiceMode" value="1">
776353776353
<attributes>
776354776354
<attribute name="Android.Runtime.RegisterAttribute">
776355776355
<properties>
@@ -1107278,4 +1107278,4 @@
11072781107278
</namespace>
11072791107279
</namespaces>
11072801107280
</assembly>
1107281-
</assemblies>
1107281+
</assemblies>

0 commit comments

Comments
 (0)