Skip to content

Commit

Permalink
Onboarding: Do not select GoingElectric by default
Browse files Browse the repository at this point in the history
instead make the user actively choose the data source
#291
  • Loading branch information
johan12345 committed Aug 3, 2023
1 parent 5ca7524 commit 42916d7
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 42916d7

Please sign in to comment.