fix offer book view for other cryptos

This commit is contained in:
woodser 2022-07-18 13:38:54 -04:00
parent 73997f711b
commit a8c99ddad9

View File

@ -117,8 +117,8 @@ public class OtherOfferBookViewModel extends OfferBookViewModel {
boolean directionResult = offer.getDirection() == direction; boolean directionResult = offer.getDirection() == direction;
boolean currencyResult = CurrencyUtil.isCryptoCurrency(offer.getCurrencyCode()) && boolean currencyResult = CurrencyUtil.isCryptoCurrency(offer.getCurrencyCode()) &&
((showAllTradeCurrenciesProperty.get() && ((showAllTradeCurrenciesProperty.get() &&
!offer.getCurrencyCode().equals(GUIUtil.TOP_ALTCOIN.getCode()) && !offer.getCurrencyCode().equals(GUIUtil.TOP_ALTCOIN.getCode())) ||
offer.getCurrencyCode().equals(selectedTradeCurrency.getCode()))); offer.getCurrencyCode().equals(selectedTradeCurrency.getCode()));
boolean paymentMethodResult = showAllPaymentMethods || boolean paymentMethodResult = showAllPaymentMethods ||
offer.getPaymentMethod().equals(selectedPaymentMethod); offer.getPaymentMethod().equals(selectedPaymentMethod);
boolean notMyOfferOrShowMyOffersActivated = !isMyOffer(offerBookListItem.getOffer()) || preferences.isShowOwnOffersInOfferBook(); boolean notMyOfferOrShowMyOffersActivated = !isMyOffer(offerBookListItem.getOffer()) || preferences.isShowOwnOffersInOfferBook();