syncingData = true;
try {
if (hint == null)
- hint = tvAmount.getResources()
- .getString(R.string.zero_amount);
- tvAmount.setHint(hint);
+ tvAmount.setHint(R.string.zero_amount);
+ else
+ tvAmount.setHint(hint);
}
finally {
syncingData = false;
catch (NumberFormatException e) {
Logger.debug("new-trans", String.format(
"assuming amount is not set due to number format exception. " +
- "input was '%s'",
- amount));
+ "input was '%s'", amount));
item.getAccount()
.resetAmount();
}