Exemplo n.º 1
0
  @Override
  protected boolean onTap(int index) {
    final OverlayItem overlayItem = overlays.get(index);
    String name = overlayItem.getTitle();

    String currentTarget = map.getPointsProvider().getStatus(DataProvider.CURRENT_TARGET);
    final Clue clue = map.getPointsProvider().getClue(name);
    Log.d(LOG_TAG, "Tapped on clue: " + clue);
    Clue currentTargetClue = null;
    if (currentTarget != null) {
      currentTargetClue = map.getPointsProvider().getClue(currentTarget);
    }

    if (clue.getFound() != null) {
      //		  handleResetFoundMenu();
      return true;
    }
    if (clue.getName().equals(currentTarget)) {
      // handleWisselNaarEindpuntMenu
      return true;
    }

    handleGaNaarMenu(clue, currentTargetClue);

    Log.d(LOG_TAG, clue.toString());

    return true;
  }