Commit 8ff139f
[enumification][Mono.Android] Fix ChoiceMode enum generation. (#1183)
Fixes: #1170
Context: a301764
Bumps to xamarin-android-api-compatibility/master/6874e3f3
Xamarin.Android 8.1 (d15-5) provides an `Android.Widget.ChoiceMode`
enum type in API-10+, used by the
`Android.Widget.ListView.ChoiceMode` property.
`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]: a301764
Removing the `ChoiceMode` enum in turn caused the
`ListView.ChoiceMode` property to be removed, as the
`ListView.getChoiceMode()` and `ListView.setChoiceMode()` methods
expected the (now nonexistent) `ChoiceMode` enum type.
Update `map.csv` so that the `CHOICE_MODE_*` values are mapped to the
`ChoiceMode` enum in API-10+, not API-15+, which restores the
`Android.Widget.ChoiceMode` enum type and the `ListView.ChoiceMode`
property.1 parent 2fc9887 commit 8ff139f
File tree
3 files changed
+7
-6
lines changed- build-tools/enumification-helpers
- external
- src/Mono.Android
3 files changed
+7
-6
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
| 845 | + | |
| 846 | + | |
846 | 847 | | |
847 | 848 | | |
848 | 849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2967 | 2967 | | |
2968 | 2968 | | |
2969 | 2969 | | |
2970 | | - | |
2971 | | - | |
2972 | | - | |
2973 | | - | |
2974 | 2970 | | |
2975 | 2971 | | |
2976 | 2972 | | |
| |||
5095 | 5091 | | |
5096 | 5092 | | |
5097 | 5093 | | |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
5098 | 5098 | | |
5099 | 5099 | | |
5100 | 5100 | | |
| |||
0 commit comments