Logger.debug(D_TEMPLATE_UI,
"Storing changed account name " + s + "; accRow=" + accRow);
accRow.setAccountName(String.valueOf(s));
+
+ mModel.applyList(null);
}
};
b.templateDetailsAccountName.addTextChangedListener(accountNameWatcher);
Logger.debug(D_TEMPLATE_UI,
"Storing changed account comment " + s + "; accRow=" + accRow);
accRow.setAccountComment(String.valueOf(s));
+
+ mModel.applyList(null);
}
};
b.templateDetailsAccountComment.addTextChangedListener(accountCommentWatcher);
b.templateDetailsAccountAmount.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
-
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
-
}
@Override
public void afterTextChanged(Editable s) {
b.templateDetailsAccountAmountLayout.setError("!");
}
}
+
+ mModel.applyList(null);
}
});
b.templateDetailsAccountAmount.setOnFocusChangeListener((v, hasFocus) -> {
.getResources();
String groupNoText = resources.getString(R.string.template_item_match_group_source);
+ Logger.debug("drag", String.format(Locale.US, "Binding account id %d, pos %d at %d",
+ item.getId(), item.getPosition(), getAdapterPosition()));
TemplateDetailsItem.AccountRow accRow = item.asAccountRowItem();
b.patternAccountLabel.setText(String.format(Locale.US,
resources.getString(R.string.template_details_account_row_label),