Problem with HistoryMode and Resetkey

Hi Justin, this is a special feature I implemented in some project. And I think I did some mistake?

P1

whished feature:

  • User want to start a session with Push on “Start” → internal a unique session ID is generated and “SessionRunning” is set to “1”.
  • User is doing his data collection and all findings belongs to this session ID.
  • User is finishing and Push on “Ende” (End) → internal a Reset key is set and “SessionRunning” is set to “0”.

On the Screen the “Start” and “Ende” buttons change the place and it should not be possible to “Start” again after 1st “Start”. Only “Ende” is allowed after “Start”. (By the way: more than one “Ende” is ok, because nothing bad happens.) It is realized with use of “history mode” and “ResetKey”-function.

My problem:

If you use the Back button (“<”) on the following screens of “Start” or “Ende”, the choice of “Start” and “Ende” will be totally locked. Only a move to “Home”-Screen will unlock the function. (The Back functions I have implemented, if the user was pushing on “Start” or “Ende” by mistake.

Here is the Layout dialogue:

Link to TestApp: Dropbox

Thanks
Holger