show the altitude at Properties too, if available

This commit is contained in:
tibbi 2019-07-08 15:28:40 +02:00
parent f09492a762
commit 4b2f457e7f

View file

@ -82,6 +82,13 @@ class PropertiesDialog() {
addProperty(R.string.gps_coordinates, "${latLon[0]}, ${latLon[1]}") 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")
}
}
} }
} }