core/src/de/lksbhm/gdx/Router.java
/**
	 * Moves back in the history one step and restores the respective location.
	 */
Moves back in the history one step and restores the respective location.
Moves back in the history one step and restores the respective location .
public void resetPreviousScreenFromHistory() {
		if (!history.isEmpty()) {
			Pair<TransitionableResettableConsumerScreen, Object> previous = history
					.pop();
			TransitionableResettableConsumerScreen screen = previous.getFirst();
			Object state = previous.getSecond();
			if (state != null) {
				screen.setState(state);
			}
			game.setScreen(previous.getFirst());
		} else {
			Gdx.app.log("Router",
					"Unable to reset previous location: history empty");
		}
	}
public void resetPreviousScreenFromHistory ( ) { if ( ! history . isEmpty ( ) ) { Pair < TransitionableResettableConsumerScreen , Object > previous = history . pop ( ) ; TransitionableResettableConsumerScreen screen = previous . getFirst ( ) ; Object state = previous . getSecond ( ) ; if ( state != null ) { screen . setState ( state ) ; } game . setScreen ( previous . getFirst ( ) ) ; } else { Gdx . app . log ( "Router" , "Unable to reset previous location: history empty" ) ; } }
Moves back in the history one step and restores the respective location.
Moves back in the history one step and restores the respective location .