Save/Discard screen doesn't appear when stopping activity

At the end of a ride, when I press the button to Stop the activity, the Save/Discard screen sometimes takes a very long time to appear---sometimes 10 seconds but occasionally more than a few minutes. This problem started occurring fairly recently, so don't know if this is related to any updates.

Any suggestions?