Exclude daily sudoku from the sudokus displayed in the LoadGameActivity
This commit is contained in:
parent
e1ded11056
commit
56db7277ca
1 changed files with 9 additions and 0 deletions
|
@ -21,7 +21,9 @@ import android.widget.ListView;
|
||||||
import android.widget.RatingBar;
|
import android.widget.RatingBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import org.secuso.privacyfriendlysudoku.controller.GameController;
|
||||||
import org.secuso.privacyfriendlysudoku.controller.GameStateManager;
|
import org.secuso.privacyfriendlysudoku.controller.GameStateManager;
|
||||||
|
import org.secuso.privacyfriendlysudoku.controller.NewLevelManager;
|
||||||
import org.secuso.privacyfriendlysudoku.controller.helper.GameInfoContainer;
|
import org.secuso.privacyfriendlysudoku.controller.helper.GameInfoContainer;
|
||||||
import org.secuso.privacyfriendlysudoku.game.GameDifficulty;
|
import org.secuso.privacyfriendlysudoku.game.GameDifficulty;
|
||||||
import org.secuso.privacyfriendlysudoku.ui.listener.IDeleteDialogFragmentListener;
|
import org.secuso.privacyfriendlysudoku.ui.listener.IDeleteDialogFragmentListener;
|
||||||
|
@ -70,6 +72,13 @@ public class LoadGameActivity extends BaseActivity implements IDeleteDialogFragm
|
||||||
GameStateManager gameStateManager = new GameStateManager(this, settings);
|
GameStateManager gameStateManager = new GameStateManager(this, settings);
|
||||||
loadableGameList = gameStateManager.loadGameStateInfo();
|
loadableGameList = gameStateManager.loadGameStateInfo();
|
||||||
|
|
||||||
|
for (GameInfoContainer container : loadableGameList) {
|
||||||
|
if (container.getID() == GameController.DAILY_SUDOKU_ID) {
|
||||||
|
loadableGameList.remove(container);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
AdapterView.OnItemClickListener clickListener = new AdapterView.OnItemClickListener() {
|
AdapterView.OnItemClickListener clickListener = new AdapterView.OnItemClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||||
|
|
Loading…
Reference in a new issue