/** * @param oldPosition the position that we're moving from * @param newPosition the position that we're moving to * @return true if the move is successful, false otherwise */ @Override public boolean onMove(int oldPosition, int newPosition) { boolean result = true; int gameNo = startPosition + newPosition; boolean onlyHeaders = !loadPGN; boolean isFavorite = DataBase.loadGame(gameNo, onlyHeaders); setGameInfo(gameNo, isFavorite); this.reloadIndex = false; return result; }