getodk / collect

ODK Collect is an Android app for filling out forms. It's been used to collect billions of data points in challenging environments around the world. Contribute and make the world a better place! ✨📋✨
https://docs.getodk.org/collect-intro
Other
718 stars 1.38k forks source link

Block settings that restart the app when in form entry #6488

Closed seadowg closed 2 weeks ago

seadowg commented 3 weeks ago

Closes #6482

I've also cleaned up a couple of cases in FormFillingActivity that would return to the main menu in rare states.

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

As discussed in the issue and elsewhere, we decided to go with blocking these settings during form entry for now as reworking locking would be better to after #5420.

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?

The main things to check here are that the user is not able to access settings that reproduce the bug.

Before submitting this PR, please make sure you have:

dbemke commented 2 weeks ago

Should "project management" (in settings) also be blocked during form entry?

seadowg commented 2 weeks ago

Should "project management" (in settings) also be blocked during form entry?

Yes. Any settings that allow you to return to the main menu should. In project management you can reset the project, reconfigure with QR code etc which all return to the main menu.

WKobus commented 2 weeks ago

Tested with Success

Verified on device with Android 15

Verified cases:

dbemke commented 2 weeks ago

Tested with Success

Verified on device with Android 10