diff --git a/frontend/app/src/main/java/com/example/speechbuddy/HomeActivity.kt b/frontend/app/src/main/java/com/example/speechbuddy/HomeActivity.kt index ddb01224..38c23e41 100644 --- a/frontend/app/src/main/java/com/example/speechbuddy/HomeActivity.kt +++ b/frontend/app/src/main/java/com/example/speechbuddy/HomeActivity.kt @@ -52,10 +52,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 diff --git a/frontend/app/src/main/java/com/example/speechbuddy/repository/SettingsRepository.kt b/frontend/app/src/main/java/com/example/speechbuddy/repository/SettingsRepository.kt index df3cba70..f795d033 100644 --- a/frontend/app/src/main/java/com/example/speechbuddy/repository/SettingsRepository.kt +++ b/frontend/app/src/main/java/com/example/speechbuddy/repository/SettingsRepository.kt @@ -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)