Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Fix UnsupportedOperationException remove from non-ArrayList #89703

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

lyuma
Copy link
Contributor

@lyuma lyuma commented Mar 20, 2024

getManifestPermissions on some versions of android seem to return some other implementation of List<> which does not implement remove()

I workaround this crash by converting the generic List<> to an ArrayList<> which is known to support remove()

Tested crash fix on Pixel Tablet Android 14:
Godot v4.3.dev - Android - Vulkan (Mobile) - integrated Mali-G710 - (8 Threads)

Fixes #89696

@lyuma
Copy link
Contributor Author

lyuma commented Mar 25, 2024

updated in 3262363 to return a mutable list. I don't have access to the test android device any more, so check carefully or test on a pixel tablet running android 14

@akien-mga akien-mga changed the title android: Fix UnsupportedOperationException remove from non-ArrayList Android: Fix UnsupportedOperationException remove from non-ArrayList Mar 25, 2024
@akien-mga akien-mga requested a review from m4gr3d March 25, 2024 09:22
@akien-mga akien-mga merged commit ccb1cb4 into godotengine:master Mar 25, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

godot 4.3 dev5 on android is crashing when i try to start it
4 participants