Skip to content

Commit

Permalink
Merge pull request #33 from lucasnlm/avoid-open-dialog-with-open-menu
Browse files Browse the repository at this point in the history
Avoid open dialog when menu is open
  • Loading branch information
lucasnlm committed Mar 27, 2020
2 parents 68873da + b348a4e commit 11402b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/dev/lucasnlm/antimine/GameActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class GameActivity : DaggerAppCompatActivity() {

private fun showEndGameDialog(victory: Boolean) {
val currentGameStatus = status
if (currentGameStatus is Status.Over && !isFinishing) {
if (currentGameStatus is Status.Over && !isFinishing && !drawer.isDrawerOpen(GravityCompat.START)) {
if (supportFragmentManager.findFragmentByTag(EndGameDialogFragment.TAG) == null) {
val score = currentGameStatus.score
EndGameDialogFragment.newInstance(
Expand Down

0 comments on commit 11402b0

Please sign in to comment.