Clean up MoneyBeamForm

This commit is contained in:
Christoph Atteneder 2018-10-25 14:07:21 +02:00
parent bedf8454ca
commit dd72b9162e
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -32,8 +32,6 @@ import bisq.core.payment.payload.PaymentAccountPayload;
import bisq.core.util.BSFormatter;
import bisq.core.util.validation.InputValidator;
import org.apache.commons.lang3.StringUtils;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
@ -76,12 +74,7 @@ public class MoneyBeamForm extends PaymentMethodForm {
@Override
protected void autoFillNameTextField() {
if (useCustomAccountNameToggleButton != null && !useCustomAccountNameToggleButton.isSelected()) {
String accountNr = accountIdInputTextField.getText();
accountNr = StringUtils.abbreviate(accountNr, 9);
String method = Res.get(paymentAccount.getPaymentMethod().getId());
accountNameTextField.setText(method.concat(": ").concat(accountNr));
}
setAccountNameWithString(accountIdInputTextField.getText());
}
@Override