Diveboard / android-native

Diveboard android native app
GNU General Public License v3.0
2 stars 2 forks source link

Fix max depth on statistics page for dives with metric units #5

Closed baarkerlounger closed 5 years ago

baarkerlounger commented 5 years ago

Dive depth is set in Meters but getting the max depth was checking if units were km, if not it's converting to ft. Meaning dives created with metric units always get converted to ft when retrieving max depth for statistics.

Before: (Max depth is incorrectly divided by 3.28084)

image

After: (Max depth is correct)

image