Skip to content

Fix crashes editing geopoly questions#7006

Merged
grzesiek2010 merged 13 commits intogetodk:masterfrom
seadowg:geo-data
Jan 7, 2026
Merged

Fix crashes editing geopoly questions#7006
grzesiek2010 merged 13 commits intogetodk:masterfrom
seadowg:geo-data

Conversation

@seadowg
Copy link
Member

@seadowg seadowg commented Dec 19, 2025

Closes #7002
Closes #7003
Blocked by getodk/javarosa#840

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

The cause of the crashes was just that the underlying types being used for geoshape/trace answers was inconsistent: sometimes it was a string (StringData) and sometimes it was geo data (GeoShapeData/GeoTraceData). I could have updated the code to treat everything as strings, but instead I chose to use the geo specific data types throughout.

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?

Should just fix the issues! Nothing is affected other than the geoshape/trace questions.

Before submitting this PR, please make sure you have:

  • added or modified tests for any new or changed behavior
  • run ./gradlew connectedAndroidTest (or ./gradlew testLab) and confirmed all checks still pass
  • added a comment above any new strings describing it for translators
  • added any new strings with date formatting to DateFormatsTest
  • 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

@seadowg seadowg marked this pull request as ready for review January 5, 2026 15:18
@seadowg seadowg requested a review from grzesiek2010 January 5, 2026 15:18
@seadowg seadowg requested a review from grzesiek2010 January 7, 2026 13:23
@seadowg seadowg requested a review from grzesiek2010 January 7, 2026 13:41
@grzesiek2010 grzesiek2010 merged commit 39530dd into getodk:master Jan 7, 2026
7 checks passed
@seadowg seadowg deleted the geo-data branch January 7, 2026 14:06
@dbemke
Copy link

dbemke commented Jan 12, 2026

Tested with Success!

Verified on Android 10

Verified cases:

@WKobus
Copy link

WKobus commented Jan 12, 2026

Tested with success

Verified on Android 16

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

Projects

None yet

4 participants