Skip to content

Incorrect enum ApplicationExitInfoReason #9000

@rgroenewoudt

Description

@rgroenewoudt

Android framework version

net8.0-android

Affected platform version

VS2022 17.10.1

Description

The enum Android.App.ApplicationExitInfoReason contains value Other but it has the incorrect numeric value.

Defined with value 10:

[IntDefinition("Android.App.ApplicationExitInfo.ReasonOther", JniField = "android/app/ApplicationExitInfo.REASON_OTHER"), SupportedOSPlatform("android30.0")]
Other = 10, // 0x0000000A

which is duplicate with:

[IntDefinition("Android.App.ApplicationExitInfo.ReasonUserRequested", JniField = "android/app/ApplicationExitInfo.REASON_USER_REQUESTED"), SupportedOSPlatform("android30.0")] 
UserRequested = 10, // 0x0000000A

According to Android documentation it should be value 13

We noticed this we have a lot of ApplicationExitInfo records with value '13' instead of a pretty enum name.

Metadata

Metadata

Assignees

Labels

Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).bugComponent does not function as intended.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions