Fix price update when picking a new date while recording a transaction

This commit is contained in:
Tanguy Herbron 2018-08-16 03:29:14 +02:00
parent e194d362ba
commit 6194ff501a

View File

@ -381,7 +381,7 @@ public class BuyFragment extends CustomRecordFragment {
if(fragmentCurrency != null) if(fragmentCurrency != null)
{ {
fragmentCurrency.getTimestampPrice(getContext(), preferenceManager.getDefaultCurrency(),calendar.getTimeInMillis() / 1000); fragmentCurrency.getTimestampPrice(getContext(), fragmentCurrency.getSymbol().equals(fragmentPair.getFrom()) ? fragmentPair.getTo() : fragmentPair.getFrom(),calendar.getTimeInMillis() / 1000);
} }
} }
}, },