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

Fixed crash when using mapbox on Android 11 #4852

Merged
merged 1 commit into from Oct 13, 2021

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Oct 12, 2021

Closes #4851

What has been done to verify that this works as intended?

I wasn't able to reproduce the bug so asked @kkrawczyk123 to take a quick look and the fix seemed to work.

Why is this the best possible solution? Were any other approaches considered?

The bug was reported in mapbox repository mapbox/mapbox-gl-native-android#425
and it's already fixed.
We could just update mapbox in our codebase and it should work but I find it risky since we are about to release a new version of our app and it might introduce other bugs. That's why I decided to go with this solution also described in one of the comments: mapbox/mapbox-gl-native-android#425 (comment)

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

It should just fix the bug. We don't need to verify anything else.

Do we need any specific form for testing your changes? If so, please attach one.

Any form with geo widgets like the All Widgets form

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

Copy link
Member

@seadowg seadowg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that using a workaround makes more sense at this point in our release cycle!

@kkrawczyk123
Copy link
Contributor

Tested with success!
Verified on Androids: 5.1 and 11.

Tested cases:

  • confirmed that issue has been fixed on Android 11

regression checks on alldevices:

  • Geopoint, Geotrace and Geoshape widgets
  • Google, Mapbox and OSM
  • placement by tapping, manual mode and automatic mode
  • submissions display on map view
  • offline layers

@mmarciniak90
Copy link
Contributor

Tested with success on Android versions: 8.1, 9.0, 10.0

@grzesiek2010 grzesiek2010 merged commit c4f70d2 into getodk:master Oct 13, 2021
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.

Collect crashes when use Mapbox and open any geo map widget on Android 11
4 participants