From 49e291881ae2f85df9c05dc4c426780ea1941a6f Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (Slimpenguin)" Date: Fri, 23 Feb 2024 08:57:49 +0100 Subject: [PATCH] Changed share text --- .../danieleverducci/nextcloudmaps/utils/IntentGenerator.java | 1 + app/src/main/res/values-it/strings.xml | 3 ++- app/src/main/res/values/strings.xml | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/utils/IntentGenerator.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/utils/IntentGenerator.java index 67c9712..7f66efc 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/utils/IntentGenerator.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/utils/IntentGenerator.java @@ -14,6 +14,7 @@ public class IntentGenerator { i.setAction(Intent.ACTION_SEND); i.setType("text/plain"); String shareMessage = context.getString(R.string.share_message) + .replace("{title}", item.getName() == null ? context.getString(R.string.share_message_default_title) : item.getName()) .replace("{lat}", ""+item.getLat()) .replace("{lng}", ""+item.getLng()); i.putExtra(Intent.EXTRA_TEXT, shareMessage ); diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index ddc7f34..b0f6ac7 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -31,7 +31,8 @@ Lista Cerca per nome Condividi via - Posizione condivisa: {lat}°N, {lng}°E https://www.openstreetmap.org/#map=17/{lat}/{lng} + {title}: {lat}°N, {lng}°E https://www.openstreetmap.org/#map=17/{lat}/{lng} + Posizione condivisa: Condividi Elimina Elimina geosegnalibro diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0590311..54e2c87 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -30,7 +30,8 @@ List Search by name Share via - Check out this place: {lat}°N, {lng}°E https://www.openstreetmap.org/#map=17/{lat}/{lng} + {title}: {lat}°N, {lng}°E https://www.openstreetmap.org/#map=17/{lat}/{lng} + Check out this place: Share Delete Delete geofavorite