Skip to content

Commit 0c91287

Browse files
yourealwaysbecodinguser
authored andcommitted
added check to input formatter to only update the text if it changed since the last update
1 parent 555d431 commit 0c91287

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/org/gnucash/android/ui/util/AmountInputFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public AmountInputFormatter(EditText amountInput) {
4747

4848
@Override
4949
public void afterTextChanged(Editable s) {
50-
if (s.length() == 0)
50+
if (s.length() == 0 || s.toString().equals(current))
5151
return;
5252
//make sure that the sign of the input is in line with the type button state
5353
BigDecimal amount = TransactionFormFragment.parseInputToDecimal(s.toString());

0 commit comments

Comments
 (0)