Skip to content

Commit

Permalink
codinguser#876 - Use updateAmountEditText(...) to factorize code
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanGarf committed Jun 14, 2020
1 parent d92391b commit 1f41df3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,9 @@ public void onItemClick(AdapterView<?> adapterView,
if (!amountEntered) {
// user already entered an amount

// TODO TW C 2020-05-23 : Il faudrait homogénéïser en appelant updateAmountEditText ?
mAmountEditText.setValue(splitList.get(0)
.getValue()
.asBigDecimal());
final Money firstSplitAmount = splitList.get(0)
.getValue();
updateAmountEditText(firstSplitAmount);
}

} else {
Expand Down

0 comments on commit 1f41df3

Please sign in to comment.