summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
053aca6)
didn't work when the running total is negative
else if (mSave != null) mSave.setVisible(false);
if (single_empty_amount) {
else if (mSave != null) mSave.setVisible(false);
if (single_empty_amount) {
- empty_amount
- .setHint(String.format("%1.2f", (running_total > 0) ? -running_total : 0f));
+ empty_amount.setHint(String.format("%1.2f",
+ (Math.abs(running_total) > 0.005) ? -running_total : 0f));