Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,16 @@ class OnThisDayGameActivity : BaseActivity(), BaseActivity.Callback {
}
windowInsets
}

supportFragmentManager.beginTransaction()
.replace(R.id.fragmentContainer, OnThisDayGameMainMenuFragment.newInstance(viewModel.invokeSource), null)
.addToBackStack(null)
.commit()
if (savedInstanceState == null) {
supportFragmentManager.beginTransaction()
.replace(
R.id.fragmentContainer,
OnThisDayGameMainMenuFragment.newInstance(viewModel.invokeSource),
null
)
.addToBackStack(null)
.commit()
}
hideAppBarDateText()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class OnThisDayGamePlayFragment : Fragment() {
}

private fun onCurrentQuestionCorrect(gameState: OnThisDayGameViewModel.GameState) {
updateInitialScores(gameState)
updateGameState(gameState)

updateQuestionEndLayout()
Expand All @@ -183,6 +184,7 @@ class OnThisDayGamePlayFragment : Fragment() {
}

private fun onCurrentQuestionIncorrect(gameState: OnThisDayGameViewModel.GameState) {
updateInitialScores(gameState)
updateGameState(gameState)

updateQuestionEndLayout()
Expand Down
Loading