Add a paddedId and use it for String concatenation

See #957 for why this is needed.

Fixes #957
This commit is contained in:
Pepper Lebeck-Jobe 2017-10-06 16:21:58 +02:00
parent 99dc2f710a
commit a85611ca4d
No known key found for this signature in database
GPG key ID: B2B336E5139A20CD

View file

@ -334,6 +334,7 @@ public class BuyerStep2View extends TradeStepView {
String assign = Res.get("portfolio.pending.step2_buyer.assign");
String fees = Res.get("portfolio.pending.step2_buyer.fees");
String id = trade.getShortId();
String paddedId = " " + id + " ";
String amount = model.btcFormatter.formatVolumeWithCode(trade.getTradeVolume());
if (paymentAccountPayload instanceof CryptoCurrencyAccountPayload)
//noinspection UnusedAssignment
@ -350,7 +351,7 @@ public class BuyerStep2View extends TradeStepView {
accountDetails +
paymentDetailsForTradePopup + ".\n" +
copyPaste + "\n\n" +
tradeId + id +
tradeId + paddedId +
assign +
refTextWarn + "\n\n" +
fees + "\n\n" +
@ -361,7 +362,7 @@ public class BuyerStep2View extends TradeStepView {
accountDetails +
paymentDetailsForTradePopup + ".\n" +
copyPaste + "\n\n" +
tradeId + id +
tradeId + paddedId +
assign +
refTextWarn;
else
@ -370,7 +371,7 @@ public class BuyerStep2View extends TradeStepView {
accountDetails +
paymentDetailsForTradePopup + ".\n" +
copyPaste + "\n\n" +
tradeId + id +
tradeId + paddedId +
assign +
refTextWarn + "\n\n" +
fees;