diff --git a/automotive/src/carapp/java/com/ixam97/carStatsViewer/carApp/tabsScreenTabs/SettingsTab.kt b/automotive/src/carapp/java/com/ixam97/carStatsViewer/carApp/tabsScreenTabs/SettingsTab.kt index bc25b270..64de0159 100644 --- a/automotive/src/carapp/java/com/ixam97/carStatsViewer/carApp/tabsScreenTabs/SettingsTab.kt +++ b/automotive/src/carapp/java/com/ixam97/carStatsViewer/carApp/tabsScreenTabs/SettingsTab.kt @@ -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()