From dfb76bd3af9764226251f902edd03e67a65ac938 Mon Sep 17 00:00:00 2001
From: MM20 <15646950+MM2-0@users.noreply.github.com>
Date: Tue, 26 Mar 2024 19:14:49 +0100
Subject: [PATCH] Remove overpass server string resource
---
.../ui/settings/locations/LocationsSettingsScreen.kt | 4 ++--
core/i18n/src/main/res/values/strings.xml | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/app/ui/src/main/java/de/mm20/launcher2/ui/settings/locations/LocationsSettingsScreen.kt b/app/ui/src/main/java/de/mm20/launcher2/ui/settings/locations/LocationsSettingsScreen.kt
index 45395abe..990881c0 100644
--- a/app/ui/src/main/java/de/mm20/launcher2/ui/settings/locations/LocationsSettingsScreen.kt
+++ b/app/ui/src/main/java/de/mm20/launcher2/ui/settings/locations/LocationsSettingsScreen.kt
@@ -135,9 +135,9 @@ fun LocationsSettingsScreen() {
TextPreference(
title = stringResource(R.string.preference_search_location_custom_overpass_url),
value = customOverpassUrl,
- placeholder = stringResource(id = R.string.overpass_url),
+ placeholder = LocationSearchSettings.DefaultOverpassUrl,
summary = customOverpassUrl.takeIf { !it.isNullOrBlank() }
- ?: stringResource(id = R.string.overpass_url),
+ ?: LocationSearchSettings.DefaultOverpassUrl,
onValueChanged = {
viewModel.setCustomOverpassUrl(it)
}
diff --git a/core/i18n/src/main/res/values/strings.xml b/core/i18n/src/main/res/values/strings.xml
index bc4e74ae..adfb3b85 100644
--- a/core/i18n/src/main/res/values/strings.xml
+++ b/core/i18n/src/main/res/values/strings.xml
@@ -877,7 +877,6 @@
Imperial
Metric
Overpass URL
- https://overpass-api.de
Hide uncategorized locations
Show only results with well defined categories, like cafés or restaurants
Map