package net.ktnx.mobileledger.ui.activity;
+import android.annotation.SuppressLint;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
return;
syncingData = true;
try {
+ if (hint == null)
+ hint = tvAmount.getResources()
+ .getString(R.string.zero_amount);
tvAmount.setHint(hint);
}
finally {
*
* @param item updates the UI elements with the data from the model item
*/
+ @SuppressLint("DefaultLocale")
public void setData(NewTransactionModel.Item item) {
beginUpdates();
try {
LedgerTransactionAccount acc = item.getAccount();
tvAccount.setText(acc.getAccountName());
tvAmount.setText(
- acc.isAmountSet() ? String.format(Locale.US, "%1.2f", acc.getAmount())
- : "");
+ acc.isAmountSet() ? String.format("%1.2f", acc.getAmount()) : "");
lHead.setVisibility(View.GONE);
lAccount.setVisibility(View.VISIBLE);
lPadding.setVisibility(View.GONE);