This is caused by the activity life cycle. Ie. When the screen is rotated, android reopens the current activity.
This is fixed by my local commit but the new commit introduces some new bugs:
- the mainactivity's find next routine is broken
- all the get last idx workout functions are broken because they return on pause workouts.
This needs more work and even my pausing commit needs major redactors.
My local commit has an if for the "---" in a function too deep. That abstraction should have to worry about being passed "---". Have a function remove "---" and the data after before sending it to the lowest function.