Skip to content

Commit

Permalink
Added location to carapp quick settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixam97 committed Aug 8, 2024
1 parent 078d94c commit 3c5b279
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ internal fun TabsScreen.settingsList() = ListTemplate.Builder().apply {
}

val quickSettingsItemList = ItemList.Builder().apply {
addItem(Row.Builder().apply {
setTitle(carContext.getString(R.string.settings_use_location))
addText("Track your location when recording a trip.") // + "\n \n" + carContext.getString(R.string.car_app_show_real_time_data_hint))
setToggle(Toggle.Builder {
appPreferences.useLocation = it
invalidateTabView()
}.setChecked(appPreferences.useLocation).build())
}.build())
addItem(Row.Builder().apply {
setTitle(carContext.getString(R.string.car_app_show_real_time_data_title))
addText(carContext.getString(R.string.car_app_show_real_time_data_subtitle) + "\n \n" + carContext.getString(R.string.car_app_show_real_time_data_hint))
addText(carContext.getString(R.string.car_app_show_real_time_data_subtitle)) // + "\n \n" + carContext.getString(R.string.car_app_show_real_time_data_hint))
setToggle(Toggle.Builder {
appPreferences.carAppRealTimeData = it
invalidateTabView()
Expand Down

0 comments on commit 3c5b279

Please sign in to comment.