import androidx.annotation.ColorInt;
import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.annotation.ColorInt;
import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.ConstraintLayout;
import net.ktnx.mobileledger.R;
import net.ktnx.mobileledger.databinding.NewTransactionAccountRowBinding;
import net.ktnx.mobileledger.R;
import net.ktnx.mobileledger.databinding.NewTransactionAccountRowBinding;
//TODO multiple amounts with different currencies per posting?
NewTransactionAccountRowItemHolder(@NonNull NewTransactionAccountRowBinding b,
NewTransactionItemsAdapter adapter) {
//TODO multiple amounts with different currencies per posting?
NewTransactionAccountRowItemHolder(@NonNull NewTransactionAccountRowBinding b,
NewTransactionItemsAdapter adapter) {
CurrencySelectorFragment cpf = new CurrencySelectorFragment();
cpf.showPositionAndPadding();
cpf.setOnCurrencySelectedListener(
CurrencySelectorFragment cpf = new CurrencySelectorFragment();
cpf.showPositionAndPadding();
cpf.setOnCurrencySelectedListener(
// probably the row was swiped out
Logger.debug("new-trans", "Ignoring request to suncData(): adapter position negative");
return false;
}
// probably the row was swiped out
Logger.debug("new-trans", "Ignoring request to suncData(): adapter position negative");
return false;
}
acc.isAmountSet() ? String.format("%4.2f", acc.getAmount()) : null);
displayAmountValidity(true);
acc.isAmountSet() ? String.format("%4.2f", acc.getAmount()) : null);
displayAmountValidity(true);
- b.comment.setText(acc.getComment());
+ final String comment = acc.getComment();
+ b.comment.setText(comment);
+ styleComment(b.comment, comment);