Beh01der / EasyFlow

EasyFlow - Simple and lightweight Finite State Machine for Java
http://datasymphony.com.au/open-source/easyflow
Apache License 2.0
445 stars 86 forks source link

Some events are not triggered in a consistent manner #33

Open Scherady opened 5 years ago

Scherady commented 5 years ago

In my App developed in Android Studio I am using EasyFlow but the events are not triggered in a reproducible manner:

All are in the main thread; here are extracts of my code:

onSelectingMainMenu.to(MAIN_MENU).transit( onReturnToPreviousChoice.to(READY), onSelectingMainMenuFinished.to(READY), onSelectingSettingsMenu.to(SETTINGS_MENU).transit( onReturnToPreviousChoice.to(MAIN_MENU) ) )

...

switch (direction) { case TOP: onReturnToPreviousChoice.trigger(flowContext); ...

Any help? Thank you.