Skip to content

Commit

Permalink
refactor #818 Rename to _.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Jan 30, 2022
1 parent 18d1c8b commit 41fb7bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class LoanCalculatorFragment : Fragment() {
}

val formatter = DecimalFormat("#,###.##")
val focusChangeListener = View.OnFocusChangeListener { v, hasFocus ->
val focusChangeListener = View.OnFocusChangeListener { v, _ ->
val format = formatter.format((v as? EditText)?.text?.toString()?.replace(",", "")?.trim()?.toBigDecimalOrNull())
(v as? EditText)?.setText(format)
}
Expand Down

0 comments on commit 41fb7bf

Please sign in to comment.