fixed review

This commit is contained in:
Vladimir 2020-08-25 16:12:55 +05:00
parent 55b070cae2
commit 7c38dd0379
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ class AmountWithDecimalDecorator(
onTextInserted(textAfter, cursorPos)
}
} catch (e: Throwable) {
editText.setText("")
editText.setText(textBefore)
editText.setSelection(textBefore.length)
}
} else {
textBefore = text.toString()