From e011d9d07c55b94da9dd5e5a5bab9b565ab178f4 Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:41:07 +0200 Subject: [PATCH] Split OSM car category in car sharing and car rental --- core/i18n/src/main/res/values/strings.xml | 3 ++- .../locations/providers/openstreetmaps/OsmLocation.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/i18n/src/main/res/values/strings.xml b/core/i18n/src/main/res/values/strings.xml index 8dd9e590..26984fb8 100644 --- a/core/i18n/src/main/res/values/strings.xml +++ b/core/i18n/src/main/res/values/strings.xml @@ -879,7 +879,8 @@ Hairdresser Bookstore Bakery - Car service + Car rental + Car sharing Cell phone store Furniture store Liquor store diff --git a/data/locations/src/main/java/de/mm20/launcher2/locations/providers/openstreetmaps/OsmLocation.kt b/data/locations/src/main/java/de/mm20/launcher2/locations/providers/openstreetmaps/OsmLocation.kt index 6a84c887..df8e3049 100644 --- a/data/locations/src/main/java/de/mm20/launcher2/locations/providers/openstreetmaps/OsmLocation.kt +++ b/data/locations/src/main/java/de/mm20/launcher2/locations/providers/openstreetmaps/OsmLocation.kt @@ -218,7 +218,8 @@ private fun Map.categorize(context: Context): Pair R.string.poi_category_fuel to LocationIcon.GasStation - "car_rental", "car_sharing" -> R.string.poi_category_car to LocationIcon.CarRental + "car_rental" -> R.string.poi_category_car to LocationIcon.CarRental + "car_sharing" -> R.string.poi_category_car to LocationIcon.CarRental "car_wash" -> R.string.poi_category_car_wash to LocationIcon.CarWash "charging_station" -> R.string.poi_category_charging_station to LocationIcon.ChargingStation "parking", "parking_space", "motorcycle_parking" -> R.string.poi_category_parking to LocationIcon.Parking