Skip to content

Commit

Permalink
Fixed erroneous transition sequence that breaks TransitionBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Auger committed Aug 7, 2015
1 parent a4c4829 commit acd8d0f
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zeitguys.mobile.app.view.transition {
package com.zeitguys.mobile.app.view.transition {
import com.zeitguys.mobile.app.AppBase;
import com.zeitguys.util.ObjectUtils;
import flash.desktop.NotificationType;
Expand Down Expand Up @@ -105,16 +105,19 @@ package com.zeitguys.mobile.app.view.transition {

trace("-------------------------------------------\nStarting TRANSITION", _TransitionModuleClass);
if (_transitionOrder == TRANSITION_ORDER_OUT_FIRST) {
// Register both transitions before calling transitionModule
// Otherwise a default transition (eg: TransitionBase) that triggers
// immediately can falsely complete the transition (see checkAllTransitionsComplete).
registerTransitionOut();
transitionModule.transitionOut();

registerTransitionIn();

transitionModule.transitionOut();
transitionModule.transitionIn();
} else {
registerTransitionIn();
transitionModule.transitionIn();

registerTransitionOut();

transitionModule.transitionIn();
transitionModule.transitionOut();
}
} else {
Expand Down

0 comments on commit acd8d0f

Please sign in to comment.