Exemplo n.º 1
0
  /**
   * 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();
  }
Exemplo n.º 2
0
  /** 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);
  }