|
|
@ -3,6 +3,7 @@ package com.gmeremit.online.gmeremittance_native.sendmoneyV2.view.payoutmode; |
|
|
|
import android.app.Activity; |
|
|
|
import android.content.Context; |
|
|
|
import android.os.Bundle; |
|
|
|
import android.os.Handler; |
|
|
|
import android.support.annotation.Nullable; |
|
|
|
import android.support.v4.view.ViewCompat; |
|
|
|
import android.support.v4.view.ViewPropertyAnimatorListenerAdapter; |
|
|
@ -409,19 +410,21 @@ public class PayoutModeSendMoneyFragment extends BaseFragment implements SendMon |
|
|
|
if (payoutModeApiResponse.getErrorCode().equalsIgnoreCase(Constants.SUCCESS_CODE_V2)) { |
|
|
|
apiResponseData = payoutModeApiResponse.getData(); |
|
|
|
setDataToPaymentMode(payoutModeApiResponse.getData().getPayoutMode()); |
|
|
|
paymentModeRvAdapter.setSelectedItem(0); |
|
|
|
} else { |
|
|
|
// showToastMessage(payoutModeApiResponse.getMsg()); |
|
|
|
showPopUpMessage(payoutModeApiResponse.getMsg(), CustomAlertDialog.AlertType.FAILED,null); |
|
|
|
showPopUpMessage(payoutModeApiResponse.getMsg(), CustomAlertDialog.AlertType.FAILED, null); |
|
|
|
} |
|
|
|
} else { |
|
|
|
scheduleTaskLater(() -> { |
|
|
|
showProgressBar(false, ""); |
|
|
|
if (payoutModeApiResponse.getErrorCode().equalsIgnoreCase(Constants.SUCCESS_CODE_V2)) |
|
|
|
if (payoutModeApiResponse.getErrorCode().equalsIgnoreCase(Constants.SUCCESS_CODE_V2)) { |
|
|
|
apiResponseData = payoutModeApiResponse.getData(); |
|
|
|
setDataToPaymentMode(payoutModeApiResponse.getData().getPayoutMode()); |
|
|
|
else |
|
|
|
{ |
|
|
|
paymentModeRvAdapter.setSelectedItem(0); |
|
|
|
} else { |
|
|
|
// showToastMessage(payoutModeApiResponse.getMsg()); |
|
|
|
showPopUpMessage(payoutModeApiResponse.getMsg(), CustomAlertDialog.AlertType.FAILED,null); |
|
|
|
showPopUpMessage(payoutModeApiResponse.getMsg(), CustomAlertDialog.AlertType.FAILED, null); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|