|
|
@@ -329,24 +329,20 @@ class PlayGameActivity : BaseMVVMActivity<ActivityPlayGameBinding, PlayGameViewM
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (TextUtils.equals("D", playClass).not()) {
|
|
|
- val countdownDialog = CountdownDialog()
|
|
|
- countdownDialog.setContentBackground(
|
|
|
- gameInbetweenImage,
|
|
|
- gameName,
|
|
|
- oneStep,
|
|
|
- twoStep,
|
|
|
- threeStep
|
|
|
- )
|
|
|
- countdownDialog.onDialogClickListener = {
|
|
|
- if (loadingOver) {
|
|
|
- callStartGame()
|
|
|
- }
|
|
|
+ val countdownDialog = CountdownDialog()
|
|
|
+ countdownDialog.setContentBackground(
|
|
|
+ gameInbetweenImage,
|
|
|
+ gameName,
|
|
|
+ oneStep,
|
|
|
+ twoStep,
|
|
|
+ threeStep
|
|
|
+ )
|
|
|
+ countdownDialog.onDialogClickListener = {
|
|
|
+ if (loadingOver) {
|
|
|
+ callStartGame()
|
|
|
}
|
|
|
- countdownDialog.show(supportFragmentManager, "countdownDialog")
|
|
|
- } else {
|
|
|
- countdownSuccess = true
|
|
|
}
|
|
|
+ countdownDialog.show(supportFragmentManager, "countdownDialog")
|
|
|
}
|
|
|
mConstrainSet_one?.clone(binding.gameParentLayout)
|
|
|
}
|