diff --git a/CHANGELOG.md b/CHANGELOG.md
index 063c1d69..0edf8e2c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]
+- Bundle the latest data snapshots
- Remove sync progress indicator from the map screen
+- Add place directions
+- Add share location button
## [0.7.2] - 2023-04-26
diff --git a/app/src/main/kotlin/element/ElementFragment.kt b/app/src/main/kotlin/element/ElementFragment.kt
index bb87ec33..eab6ebcf 100644
--- a/app/src/main/kotlin/element/ElementFragment.kt
+++ b/app/src/main/kotlin/element/ElementFragment.kt
@@ -112,6 +112,18 @@ class ElementFragment : Fragment() {
requireContext().startActivity(Intent.createChooser(intent, null))
}
+ R.id.action_share -> {
+ val element = runBlocking { elementsRepo.selectById(elementId)!! }
+ val osmType = element.osmJson.optString("type")
+ val osmId = element.osmJson.optLong("id")
+ val uri = Uri.parse("https://btcmap.org/merchant/$osmType:$osmId")
+ val intent = Intent(Intent.ACTION_SEND).apply {
+ putExtra(Intent.EXTRA_TEXT, uri.toString())
+ type = "text/plain"
+ }
+ requireContext().startActivity(Intent.createChooser(intent, null))
+ }
+
R.id.action_view_on_osm -> {
val element = runBlocking { elementsRepo.selectById(elementId)!! }
val osmType = element.osmJson.optString("type")
diff --git a/app/src/main/res/menu/element.xml b/app/src/main/res/menu/element.xml
index b8375a74..4abf9759 100644
--- a/app/src/main/res/menu/element.xml
+++ b/app/src/main/res/menu/element.xml
@@ -3,10 +3,15 @@
+
+
- New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml
index fec2a0fa..f8086a8d 100644
--- a/app/src/main/res/values-ar/strings.xml
+++ b/app/src/main/res/values-ar/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d changes
- %d change
diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml
index dc906f0b..5abe644c 100644
--- a/app/src/main/res/values-bg/strings.xml
+++ b/app/src/main/res/values-bg/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d промяна
- %d промени
diff --git a/app/src/main/res/values-bn/strings.xml b/app/src/main/res/values-bn/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-bn/strings.xml
+++ b/app/src/main/res/values-bn/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml
index 5fe154ff..dd332e0c 100644
--- a/app/src/main/res/values-ca/strings.xml
+++ b/app/src/main/res/values-ca/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml
index 9a6ce72e..c46ab552 100644
--- a/app/src/main/res/values-cs/strings.xml
+++ b/app/src/main/res/values-cs/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d změn
- %d změn
diff --git a/app/src/main/res/values-da/strings.xml b/app/src/main/res/values-da/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-da/strings.xml
+++ b/app/src/main/res/values-da/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
index dc3910b8..c93d2dee 100644
--- a/app/src/main/res/values-de/strings.xml
+++ b/app/src/main/res/values-de/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d Änderung
- %d Änderungen
diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml
index d4bc022d..3111331e 100644
--- a/app/src/main/res/values-el/strings.xml
+++ b/app/src/main/res/values-el/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d αλλαγή
- %d αλλαγές
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 29c03212..3db36399 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d cambio
- %d cambios
diff --git a/app/src/main/res/values-fa/strings.xml b/app/src/main/res/values-fa/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-fa/strings.xml
+++ b/app/src/main/res/values-fa/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-fi/strings.xml
+++ b/app/src/main/res/values-fi/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index 0647dbb6..73d5e0d5 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d modification
- %d modifications
diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-hi/strings.xml
+++ b/app/src/main/res/values-hi/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-hu/strings.xml
+++ b/app/src/main/res/values-hu/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
index 5fe154ff..dd332e0c 100644
--- a/app/src/main/res/values-it/strings.xml
+++ b/app/src/main/res/values-it/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-iw/strings.xml b/app/src/main/res/values-iw/strings.xml
index ba4ca0e7..4c842c76 100644
--- a/app/src/main/res/values-iw/strings.xml
+++ b/app/src/main/res/values-iw/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- שינויים %d
- שינויים %d
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index 4df4f370..cb8ebbbf 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d changes
diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml
index 4df4f370..cb8ebbbf 100644
--- a/app/src/main/res/values-ko/strings.xml
+++ b/app/src/main/res/values-ko/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d changes
diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-nl/strings.xml
+++ b/app/src/main/res/values-nl/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-no/strings.xml b/app/src/main/res/values-no/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-no/strings.xml
+++ b/app/src/main/res/values-no/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml
index 86b76972..d494912e 100644
--- a/app/src/main/res/values-pl/strings.xml
+++ b/app/src/main/res/values-pl/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml
index cb39aa73..c9be61df 100644
--- a/app/src/main/res/values-pt/strings.xml
+++ b/app/src/main/res/values-pt/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d mudança
- %d mudanças
diff --git a/app/src/main/res/values-ro/strings.xml b/app/src/main/res/values-ro/strings.xml
index 67575ab1..ec66248b 100644
--- a/app/src/main/res/values-ro/strings.xml
+++ b/app/src/main/res/values-ro/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index f42b40ae..3fec80f4 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d правка
- %d правок
diff --git a/app/src/main/res/values-sr/strings.xml b/app/src/main/res/values-sr/strings.xml
index 67575ab1..ec66248b 100644
--- a/app/src/main/res/values-sr/strings.xml
+++ b/app/src/main/res/values-sr/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-sv/strings.xml
+++ b/app/src/main/res/values-sv/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-th/strings.xml b/app/src/main/res/values-th/strings.xml
index 03ca18f5..af63effd 100644
--- a/app/src/main/res/values-th/strings.xml
+++ b/app/src/main/res/values-th/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d การเปลี่ยนแปลง
diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml
index 19b9a97f..fdbc1b7a 100644
--- a/app/src/main/res/values-tr/strings.xml
+++ b/app/src/main/res/values-tr/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml
index 86b76972..d494912e 100644
--- a/app/src/main/res/values-uk/strings.xml
+++ b/app/src/main/res/values-uk/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-ur/strings.xml b/app/src/main/res/values-ur/strings.xml
index ad79d9c8..ca70d91f 100644
--- a/app/src/main/res/values-ur/strings.xml
+++ b/app/src/main/res/values-ur/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d change
- %d changes
diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml
index 4df4f370..cb8ebbbf 100644
--- a/app/src/main/res/values-vi/strings.xml
+++ b/app/src/main/res/values-vi/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d changes
diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml
index 4df4f370..cb8ebbbf 100644
--- a/app/src/main/res/values-zh/strings.xml
+++ b/app/src/main/res/values-zh/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d changes
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f5f37208..d9dd2f07 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -61,6 +61,8 @@
New local merchant accepts bitcoins
Show sync summary
Show all new elements
+ Directions
+ Share
- %d changes
- %d change