/** * Restore elapsed time * * @param load Bundle where the elapsed time can be found */ private void restoreElapsedTime(Bundle load) { if (timer == null) { return; } timer.stop(); timer.resetTime(); timer.setElapsedTime(load.getLong(BUNDLE_ELAPSED_TIME, 0)); updateTimerTime(); }
/** Create a new game depending on the current difficulty. */ private void createGame() { Log.d(Game.class.getName(), "Create Game"); creating = true; clickCount = 0; timer.stop(); timer.resetTime(); updateTimerTime(); fieldCreationFragment.createNewZahlenschlange(difficulty); }