dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.89k stars 523 forks source link

[Mono.Android] Fix incorrect value for enum `ApplicationExitInfoReason.Other`. #9003

Closed jpobst closed 2 weeks ago

jpobst commented 3 weeks ago

Fixes: https://github.com/xamarin/xamarin-android/issues/9000 Context: https://github.com/xamarin/xamarin-android/commit/3ca2a07ae859aa68cd97ea2c310a2ce62f952e24

The constant android/app/ApplicationExitInfo.REASON_OTHER was enumified against API-30 DP2 with a value of 10. Android developer previews are not stable and this value was changed to 13 in API-30 DP3. However, we did not update the enum value.

This process has been mitigated since, as we no longer enumify unstable API levels. We wait until Google marks the API as "stable" before we perform enumification.

Update the enum to the correct value so it will be correct in .NET 9+.