diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt index 912de22b..d8bc93b8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt @@ -173,7 +173,7 @@ class ConverterView @JvmOverloads constructor( val items = ArrayList(converter!!.units.mapIndexed { index, unit -> RadioItem(index, context.getString(unit.nameResId), unit) }) - RadioGroupDialog(context as Activity, items) { + RadioGroupDialog(context as Activity, items, converter!!.units.indexOf(propertyToChange.get())) { val unit = it as Converter.Unit if (unit == otherProperty.get()) { switch()