aboutsummaryrefslogtreecommitdiff
path: root/androidApp
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-04 23:37:22 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-04 23:37:22 -0600
commite0e172d88af6a0dc173f150ec0dcffea08ad462a (patch)
treedfedcf1840774e1caa0ca2c9c80966579d5db45d /androidApp
parentfdf44523cf05fbed75ae1611d90f1d7c8673a1be (diff)
downloadetbsa-trackermap-mobile-e0e172d88af6a0dc173f150ec0dcffea08ad462a.tar.gz
etbsa-trackermap-mobile-e0e172d88af6a0dc173f150ec0dcffea08ad462a.tar.bz2
etbsa-trackermap-mobile-e0e172d88af6a0dc173f150ec0dcffea08ad462a.zip
Moved tiles URL to strings.xml
Diffstat (limited to 'androidApp')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt2
-rw-r--r--androidApp/src/main/res/values/strings.xml3
2 files changed, 4 insertions, 1 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
index 6873431..7306cbf 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt
@@ -48,7 +48,7 @@ class MapFragment : GlobeMapFragment() {
cacheDir.mkdir()
val tileInfo = RemoteTileInfoNew(
- "https://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga",
+ getString(R.string.maps_tile_url),
0,
21
)
diff --git a/androidApp/src/main/res/values/strings.xml b/androidApp/src/main/res/values/strings.xml
index b50d096..93f088a 100644
--- a/androidApp/src/main/res/values/strings.xml
+++ b/androidApp/src/main/res/values/strings.xml
@@ -3,6 +3,9 @@
<string name="app_name">TrackerMap</string>
<!-- Non translatables -->
+ <string name="maps_tile_url" translatable="false">
+ https://mt0.google.com/vt/lyrs=m&amp;hl=en&amp;x={x}&amp;y={y}&amp;z={z}&amp;s=Ga
+ </string>
<string name="maps_url_template" translatable="false">
https://www.google.com/maps/place/%1$f,%2$f?z=19
</string>