Skip to content

Commit

Permalink
Merge pull request #30 from FabiRich/main
Browse files Browse the repository at this point in the history
added nautical mile
  • Loading branch information
SuhasDissa authored Mar 20, 2024
2 parents 85921d4 + a4a730e commit 6368f59
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 6368f59

Please sign in to comment.