From 4b2f457e7fadefca0d687bc5da5bf050f38bbf92 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 8 Jul 2019 15:28:40 +0200 Subject: [PATCH] show the altitude at Properties too, if available --- .../simplemobiletools/commons/dialogs/PropertiesDialog.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/PropertiesDialog.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/PropertiesDialog.kt index 10ab33ec1..4525daa81 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/PropertiesDialog.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/PropertiesDialog.kt @@ -82,6 +82,13 @@ class PropertiesDialog() { addProperty(R.string.gps_coordinates, "${latLon[0]}, ${latLon[1]}") } } + + val altitude = exif.getAltitude(0.0) + if (altitude != 0.0) { + activity.runOnUiThread { + addProperty(R.string.altitude, "${altitude}m") + } + } } }