From a4a730ea285ef7ae4d4f9f41d975159dc12df0f6 Mon Sep 17 00:00:00 2001 From: FabiRich <76914324+FabiRich@users.noreply.github.com> Date: Wed, 20 Mar 2024 00:14:12 +0100 Subject: [PATCH] added nautical mile (#1) * Update strings.xml * Update LengthConverter.kt --- .../net/youapps/calcyou/data/converters/LengthConverter.kt | 5 +++-- app/src/main/res/values/strings.xml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/youapps/calcyou/data/converters/LengthConverter.kt b/app/src/main/java/net/youapps/calcyou/data/converters/LengthConverter.kt index b6ae731..4e8e486 100644 --- a/app/src/main/java/net/youapps/calcyou/data/converters/LengthConverter.kt +++ b/app/src/main/java/net/youapps/calcyou/data/converters/LengthConverter.kt @@ -11,6 +11,7 @@ class LengthConverter : UnitConverter { FactorUnit(R.string.mile, 1609.344), FactorUnit(R.string.yard, 0.9144), FactorUnit(R.string.foot, 0.3048), - FactorUnit(R.string.inch, 0.0254) + FactorUnit(R.string.inch, 0.0254), + FactorUnit(R.string.nautical_mile, 1852) ) -} \ No newline at end of file +} diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 27e9d4e..3e5c7e0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -37,6 +37,7 @@ Centimeter Millimeter Mile + Nautical Mile Yard Foot Inch @@ -160,4 +161,4 @@ Terabit Petabit Exabit - \ No newline at end of file +