|
|
@ -1,7 +1,6 @@ |
|
|
|
package com.gmeremit.online.gmeremittance_native.exrate.presenter; |
|
|
|
|
|
|
|
import android.os.Handler; |
|
|
|
import android.util.Log; |
|
|
|
|
|
|
|
import com.gmeremit.online.gmeremittance_native.GmeApplication; |
|
|
|
import com.gmeremit.online.gmeremittance_native.R; |
|
|
@ -29,6 +28,8 @@ import io.reactivex.android.schedulers.AndroidSchedulers; |
|
|
|
import io.reactivex.disposables.CompositeDisposable; |
|
|
|
import io.reactivex.schedulers.Schedulers; |
|
|
|
|
|
|
|
import static com.gmeremit.online.gmeremittance_native.utils.https.HTTPConstants.HTTP_INVALID_REQUEST; |
|
|
|
|
|
|
|
public class ExchangeRatePresenter extends BasePresenter implements ExchangeRatePresenterInterface { |
|
|
|
|
|
|
|
private final ExchangeRatePresenterInterface.ExchangeRateContractInterfacee view; |
|
|
@ -312,6 +313,11 @@ public class ExchangeRatePresenter extends BasePresenter implements ExchangeRate |
|
|
|
view.showPayoutAmount(Utils.formatCurrencyWithoutTruncatingDecimal(pAmount)); |
|
|
|
view.showCollectionAmount(Utils.formatCurrency(cAmount)); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
clearExistingRateOnFailure(); |
|
|
|
view.showPopUpMessage(HTTP_INVALID_REQUEST, CustomAlertDialog.AlertType.FAILED, null); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
clearExistingRateOnFailure(); |
|
|
|