diff --git a/app/src/main/java/net/vonforst/evmap/fragment/OnboardingFragment.kt b/app/src/main/java/net/vonforst/evmap/fragment/OnboardingFragment.kt index 2d19627a7..2ed671223 100644 --- a/app/src/main/java/net/vonforst/evmap/fragment/OnboardingFragment.kt +++ b/app/src/main/java/net/vonforst/evmap/fragment/OnboardingFragment.kt @@ -243,9 +243,11 @@ class DataSourceSelectFragment : OnboardingPageFragment() { } } } - when (prefs.dataSource) { - "goingelectric" -> binding.rgDataSource.rbGoingElectric.isChecked = true - "openchargemap" -> binding.rgDataSource.rbOpenChargeMap.isChecked = true + if (prefs.dataSourceSet) { + when (prefs.dataSource) { + "goingelectric" -> binding.rgDataSource.rbGoingElectric.isChecked = true + "openchargemap" -> binding.rgDataSource.rbOpenChargeMap.isChecked = true + } } binding.btnGetStarted.setOnClickListener {