Skip to content

Commit

Permalink
Show no snack bar when cheating
Browse files Browse the repository at this point in the history
  • Loading branch information
meikpiep committed Jan 23, 2024
1 parent 8e3f1e8 commit db1450e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Removed message when cheating/revealing cells. It seemed to be not motivating at all.

### Fixed

### Security
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ class MainActivity : AppCompatActivity(), GridCreationListener {
}

fun cheatedOnGame() {
makeToast(R.string.toast_cheated)
statisticsManager.storeStreak(false)
}

Expand Down Expand Up @@ -411,12 +410,6 @@ class MainActivity : AppCompatActivity(), GridCreationListener {
.show()
}

private fun makeToast(resId: Int) {
Snackbar.make(binding.hintOrNewGame, resId, Snackbar.LENGTH_LONG)
.setAnchorView(binding.hintOrNewGame)
.show()
}

override fun freshGridWasCreated() {
showGrid()
}
Expand Down
1 change: 0 additions & 1 deletion gauguin-app/src/main/res/values-de-rDE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
<string name="dialog_delete_msg">Spiel wird gelöscht</string>
<string name="dialog_delete_all_title">Alle Spiele löschen?</string>
<string name="dialog_delete_all_msg">Alle Spiele werden gelöscht</string>
<string name="toast_cheated">Dieses Puzzle scheint nicht leicht zu sein</string>
<string name="simulate_game_solved">Gewonnenes Spiel simulieren</string>
<string name="difficulty_label">Schwierigkeitsstufe</string>
<string name="single_cells_usage_label">Einzelgruppen</string>
Expand Down
1 change: 0 additions & 1 deletion gauguin-app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
<string name="dialog_delete_all_title">Delete all games?</string>
<string name="dialog_delete_all_msg">All games will be deleted</string>

<string name="toast_cheated">This puzzle is hard eh</string>
<string name="simulate_game_solved">Simulate game solved</string>
<string name="difficulty_label">Difficulty</string>
<string name="single_cells_usage_label">Single cells</string>
Expand Down

0 comments on commit db1450e

Please sign in to comment.