fun validateMinimum() { var newMin: Double try { newMin = this.minimumRangeValue.getText().toDouble() if (newMin >= this.maximumValue) { newMin = this.minimumValue } } catch (e: NumberFormatException) { newMin = this.minimumValue } this.minimumValue = newMin this.minimumRangeValue.setText(java.lang.Double.toString(this.minimumValue)) }
Revalidate the range minimum .