Skip to content

Commit

Permalink
refactor: add more SceneInternalException
Browse files Browse the repository at this point in the history
  • Loading branch information
qii committed May 27, 2020
1 parent 074ddf5 commit 22784ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -952,6 +952,8 @@ record = groupScene.getGroupSceneManager().findByScene(scene);
scene.dispatchResume();
moveState(groupScene, scene, to, forceRemove, endAction);
break;
default:
throw new SceneInternalException("unreachable state case " + currentState.getName());
}
} else {
switch (currentState) {
Expand Down Expand Up @@ -984,6 +986,8 @@ record = groupScene.getGroupSceneManager().findByScene(scene);
scene.dispatchDetachActivity();
moveState(groupScene, scene, to, forceRemove, endAction);
break;
default:
throw new SceneInternalException("unreachable state case " + currentState.getName());
}
}
}
Expand Down
Expand Up @@ -422,6 +422,8 @@ private static void moveState(@NonNull NavigationScene navigationScene,
scene.dispatchResume();
moveState(navigationScene, scene, to, bundle, causedByActivityLifeCycle, endAction);
break;
default:
throw new SceneInternalException("unreachable state case " + currentState.getName());
}
} else {
switch (currentState) {
Expand Down Expand Up @@ -452,6 +454,8 @@ private static void moveState(@NonNull NavigationScene navigationScene,
scene.dispatchDetachActivity();
moveState(navigationScene, scene, to, bundle, causedByActivityLifeCycle, endAction);
break;
default:
throw new SceneInternalException("unreachable state case " + currentState.getName());
}
}
}
Expand Down

0 comments on commit 22784ea

Please sign in to comment.