aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-16 19:19:03 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-16 19:19:03 -0600
commita822ae0996b13576be9dc7a9fc3b9c5acb0d90d3 (patch)
treecb34a4130954be3dc36d455fd7c22e771927f96e
parent3eb11df687c48110327e2fb1381e43cfd001c20a (diff)
downloadetbsa-trackermap-mobile-a822ae0996b13576be9dc7a9fc3b9c5acb0d90d3.tar.gz
etbsa-trackermap-mobile-a822ae0996b13576be9dc7a9fc3b9c5acb0d90d3.tar.bz2
etbsa-trackermap-mobile-a822ae0996b13576be9dc7a9fc3b9c5acb0d90d3.zip
Hide device limit when <= 0, and show device unique ID on details view
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt3
-rw-r--r--androidApp/src/main/res/values-es-rMX/strings.xml1
-rw-r--r--androidApp/src/main/res/values/strings.xml1
3 files changed, 5 insertions, 0 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt
index 568bd6b..e75f475 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/information/UnitInformationFragment.kt
@@ -96,6 +96,9 @@ class UnitInformationFragment : Fragment() {
unit.device.contact?.let { contact ->
details.add(getString(R.string.unit_info_contact) to contact)
}
+ unit.device.uniqueId?.let { uniqueId ->
+ details.add(getString(R.string.unit_info_uniqueid) to uniqueId)
+ }
unit.position?.fixTime?.let { fixTime ->
details.add(getString(R.string.unit_info_datetime) to Formatter.formatDate(fixTime))
}
diff --git a/androidApp/src/main/res/values-es-rMX/strings.xml b/androidApp/src/main/res/values-es-rMX/strings.xml
index 835f342..6b2bd11 100644
--- a/androidApp/src/main/res/values-es-rMX/strings.xml
+++ b/androidApp/src/main/res/values-es-rMX/strings.xml
@@ -66,6 +66,7 @@
<!-- Unit Information -->
<string name="unit_info_contact">Contacto</string>
+ <string name="unit_info_uniqueid">ID único</string>
<string name="unit_info_speed">Velocidad</string>
<string name="unit_info_address">Dirección</string>
<string name="unit_info_latitude">Latitud</string>
diff --git a/androidApp/src/main/res/values/strings.xml b/androidApp/src/main/res/values/strings.xml
index 62963fa..31c0ed4 100644
--- a/androidApp/src/main/res/values/strings.xml
+++ b/androidApp/src/main/res/values/strings.xml
@@ -79,6 +79,7 @@
<!-- Unit Information -->
<string name="unit_info_contact">Contact</string>
+ <string name="unit_info_uniqueid">Unique ID</string>
<string name="unit_info_speed">Speed</string>
<string name="unit_info_address">Address</string>
<string name="unit_info_latitude">Latitude</string>