Clean up USPostalMoneyOrderForm

This commit is contained in:
Christoph Atteneder 2018-10-26 16:39:59 +02:00
parent 0d85252960
commit 73a99107e6
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

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