parent
3de61e544b
commit
f8f82e6294
@ -14,6 +14,11 @@
|
||||
<item quantity="one">kilometer</item>
|
||||
<item quantity="other">kilometers</item>
|
||||
</plurals>
|
||||
<string name="unit_decimeter_symbol">dm</string>
|
||||
<plurals name="unit_decimeter">
|
||||
<item quantity="one">decimeter</item>
|
||||
<item quantity="other">decimeters</item>
|
||||
</plurals>
|
||||
<string name="unit_centimeter_symbol">cm</string>
|
||||
<plurals name="unit_centimeter">
|
||||
<item quantity="one">centimeter</item>
|
||||
|
||||
@ -18,6 +18,11 @@ class LengthConverter(context: Context) : SimpleFactorConverter() {
|
||||
context.getString(R.string.unit_kilometer_symbol),
|
||||
R.plurals.unit_kilometer
|
||||
),
|
||||
MeasureUnitWithFactor(
|
||||
10.0,
|
||||
context.getString(R.string.unit_decimeter_symbol),
|
||||
R.plurals.unit_decimeter
|
||||
),
|
||||
MeasureUnitWithFactor(
|
||||
100.0,
|
||||
context.getString(R.string.unit_centimeter_symbol),
|
||||
|
||||
@ -7,7 +7,7 @@ import de.mm20.launcher2.unitconverter.MeasureUnit
|
||||
import de.mm20.launcher2.unitconverter.UnitValue
|
||||
|
||||
/**
|
||||
* A converter for units that can converted into each other by simply multiplicating with a constant factor
|
||||
* A converter for units that can converted into each other by simple multiplication with a constant factor
|
||||
*/
|
||||
abstract class SimpleFactorConverter: Converter {
|
||||
open val standardUnits: List<MeasureUnitWithFactor> = emptyList()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user