void loadUIState(UIState state) { if (state == null) { return; } if (state.getStartPoint() != null) { scrollTo(state.getStartPoint(), false); } else { setZoom(state.getZoom(), null); context.getScreen().setScreenCenter(state.getScreenCenterX(), state.getScreenCenterY()); } }