fix wear os build
This commit is contained in:
parent
166efb5c77
commit
518971615f
3 changed files with 4 additions and 4 deletions
|
@ -387,8 +387,8 @@ class GameActivity : DaggerAppCompatActivity() {
|
||||||
val score = currentGameStatus.score
|
val score = currentGameStatus.score
|
||||||
EndGameDialogFragment.newInstance(
|
EndGameDialogFragment.newInstance(
|
||||||
victory,
|
victory,
|
||||||
score.rightMines,
|
score?.rightMines ?: 0,
|
||||||
score.totalMines,
|
score?.totalMines ?: 0,
|
||||||
currentGameStatus.time
|
currentGameStatus.time
|
||||||
).apply {
|
).apply {
|
||||||
showAllowingStateLoss(supportFragmentManager, EndGameDialogFragment.TAG)
|
showAllowingStateLoss(supportFragmentManager, EndGameDialogFragment.TAG)
|
||||||
|
|
|
@ -51,7 +51,7 @@ class EndGameDialogFragment : DaggerAppCompatDialogFragment() {
|
||||||
time = getLong(DIALOG_TIME)
|
time = getLong(DIALOG_TIME)
|
||||||
rightMines = getInt(DIALOG_RIGHT_MINES)
|
rightMines = getInt(DIALOG_RIGHT_MINES)
|
||||||
totalMines = getInt(DIALOG_TOTAL_MINES)
|
totalMines = getInt(DIALOG_TOTAL_MINES)
|
||||||
hasValidData = true
|
hasValidData = (totalMines > 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,6 @@ sealed class Status {
|
||||||
|
|
||||||
class Over(
|
class Over(
|
||||||
val time: Long = 0L,
|
val time: Long = 0L,
|
||||||
val score: Score
|
val score: Score? = null
|
||||||
) : Status()
|
) : Status()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue