Advanced workout problem
Hi!
I want to create a custom workout like this example:

I want to have a countdown before an active step, so I selected this options:

when I start the workout, this is the layout in the recording screen:

I think that the step that I selected with an arrow shouldn't be in that position, because the active step wasn't stopped by button press, but when the 20s finished. As shown in the first image, after the 20s active step a recovery step starts and is set to stop only when button pressed. This is when the 15s countdown until the next active step should be. Not before. This order matters a lot, because when I stop the recovery step, there's no 15s countdown to the next active step and it starts immediately when I'm still holding the phone.
Is there something I'm missing here or is it a problem that can be fixed? Regards
https://github.com/jonasoreland/runnerup/blob/master/app/src/main/org/runnerup/workout/WorkoutBuilder.java#L634
In workouts active/rest is expected, so the check is for rest only. On line 644, the countdown step is added before the current step, which seem incorrect.
Both of those should probably be changed, but there should be a workaround.