Skip to content

Commit

Permalink
added nautical mile (#1)
Browse files Browse the repository at this point in the history
* Update strings.xml

* Update LengthConverter.kt
  • Loading branch information
FabiRich authored Mar 19, 2024
1 parent 85921d4 commit a4a730e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
}
}
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<string name="centimeter">Centimeter</string>
<string name="millimeter">Millimeter</string>
<string name="mile">Mile</string>
<string name="nautical_mile">Nautical Mile</string>
<string name="yard">Yard</string>
<string name="foot">Foot</string>
<string name="inch">Inch</string>
Expand Down Expand Up @@ -160,4 +161,4 @@
<string name="terabit">Terabit</string>
<string name="petabit">Petabit</string>
<string name="exabit">Exabit</string>
</resources>
</resources>

0 comments on commit a4a730e

Please sign in to comment.