From 90f523a14edd7ad387e45397cbad70d40d07a7c4 Mon Sep 17 00:00:00 2001 From: Justin Carter Date: Thu, 21 Nov 2019 22:58:43 +0100 Subject: [PATCH] Add missing @Named annotations for CoinFormatter injection --- .../desktop/main/funds/transactions/TransactionsView.java | 4 +++- .../java/bisq/desktop/main/offer/takeoffer/TakeOfferView.java | 4 +++- .../java/bisq/desktop/main/support/dispute/DisputeView.java | 3 +++ .../desktop/main/support/dispute/agent/DisputeAgentView.java | 1 + .../main/support/dispute/client/DisputeClientView.java | 3 +++ 5 files changed, 13 insertions(+), 2 deletions(-) diff --git a/desktop/src/main/java/bisq/desktop/main/funds/transactions/TransactionsView.java b/desktop/src/main/java/bisq/desktop/main/funds/transactions/TransactionsView.java index 9ceb08b691a..cf4144faf0d 100644 --- a/desktop/src/main/java/bisq/desktop/main/funds/transactions/TransactionsView.java +++ b/desktop/src/main/java/bisq/desktop/main/funds/transactions/TransactionsView.java @@ -36,6 +36,7 @@ import bisq.core.trade.Tradable; import bisq.core.trade.Trade; import bisq.core.user.Preferences; +import bisq.core.util.FormattingUtils; import bisq.core.util.coin.CoinFormatter; import bisq.network.p2p.P2PService; @@ -55,6 +56,7 @@ import com.googlecode.jcsv.writer.CSVEntryConverter; import javax.inject.Inject; +import javax.inject.Named; import de.jensd.fx.fontawesome.AwesomeIcon; @@ -127,7 +129,7 @@ public class TransactionsView extends ActivatableView { private TransactionsView(BtcWalletService btcWalletService, P2PService p2PService, WalletsSetup walletsSetup, - CoinFormatter formatter, + @Named(FormattingUtils.BTC_FORMATTER_KEY) CoinFormatter formatter, Preferences preferences, TradeDetailsWindow tradeDetailsWindow, OfferDetailsWindow offerDetailsWindow, diff --git a/desktop/src/main/java/bisq/desktop/main/offer/takeoffer/TakeOfferView.java b/desktop/src/main/java/bisq/desktop/main/offer/takeoffer/TakeOfferView.java index 5be0561d4d3..a59874b4493 100644 --- a/desktop/src/main/java/bisq/desktop/main/offer/takeoffer/TakeOfferView.java +++ b/desktop/src/main/java/bisq/desktop/main/offer/takeoffer/TakeOfferView.java @@ -54,6 +54,7 @@ import bisq.core.payment.PaymentAccount; import bisq.core.payment.payload.PaymentMethod; import bisq.core.user.DontShowAgainLookup; +import bisq.core.util.FormattingUtils; import bisq.core.util.coin.BsqFormatter; import bisq.core.util.coin.CoinFormatter; @@ -70,6 +71,7 @@ import net.glxn.qrgen.image.ImageType; import javax.inject.Inject; +import javax.inject.Named; import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon; @@ -172,7 +174,7 @@ public class TakeOfferView extends ActivatableViewAndModel> DisputeManager,