Skip to content

Commit

Permalink
Merge pull request #98 from snuhcs-course/fix/display-mode
Browse files Browse the repository at this point in the history
fix/display-mode
  • Loading branch information
JH747 authored Dec 4, 2023
2 parents ce5636c + 0625c37 commit 8c59c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ class HomeActivity : BaseActivity() {
}

private fun getInitialPage(): Boolean {
var initialPage = false
var initialPage = true
lifecycleScope.launch {
settingsRepository.getInitialPage().collect {
initialPage = it.data?: false
initialPage = it.data?: true
}
}
return initialPage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class SettingsRepository @Inject constructor(
} else {
setDarkMode(true)
}
if (defaultMenu == 0) {
if (defaultMenu == 1) {
setInitialPage(InitialPage.SYMBOL_SELECTION)
} else {
setInitialPage(InitialPage.TEXT_TO_SPEECH)
Expand Down

0 comments on commit 8c59c1c

Please sign in to comment.