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

GeoTrace interval timer is restarted on screen rotation #2646

Open zestyping opened 6 years ago

zestyping commented 6 years ago

Software and hardware versions

All versions of Collect.

Problem description

When the screen is rotated, the interval timer (for automatic recording mode) in the GeoTraceActivity is restarted. So, for example, if the activity is set to automatically record a point every 10 seconds, and you rotate the screen exactly 9 seconds after the last point was recorded, then instead of recording another point at the expected time 1 second later, the next point is recorded 10 seconds later.

Steps to reproduce the problem

Open the GeoTrace widget and start collecting a trace in automatic mode. Set the interval to 10 seconds. After a point is recorded, wait 9 seconds and then rotate the screen. 10 more seconds will pass before the next point is recorded.

Expected behavior

In the tested scenario, after screen rotation, only 1 second should pass before the next point is recorded.

(See previous related items: #2640, #2310)

DreamyPhobic commented 6 years ago

@opendatakit-bot claim

getodk-bot commented 5 years ago

Hello @DreamyPhobic, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 15 days.

You can reclaim this issue or claim any other issue by commenting @opendatakit-bot claim on that issue.

Thanks for your contributions, and hope to see you again soon!

zestyping commented 5 years ago

The title of this issue is still accurate, but the detailed description is now out of date. #2920 has a better description.