Browse Source

fix native country not binding properly in send money

new_design
Mukesh Dhungana 2 years ago
parent
commit
52adebd10b
  1. 4
      app/src/main/java/com/remit/jmecustomer/features/kyc/newCustomer/view/documents/KYCIDTypeFragment.java
  2. 7
      app/src/main/java/com/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/edit/RecipientEditV3ViewModel.java

4
app/src/main/java/com/remit/jmecustomer/features/kyc/newCustomer/view/documents/KYCIDTypeFragment.java

@ -6,6 +6,8 @@ import android.content.ClipData;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
@ -763,6 +765,8 @@ public class KYCIDTypeFragment extends BaseFragment implements KYCV3PresenterInt
private void requestToCropImage(int currentRequest) {
this.currentRequest = currentRequest;
CropImage.activity(photoURI)
.setInitialCropWindowPaddingRatio(0)
.setAspectRatio(16,9)
.setCropMenuCropButtonTitle(getString(R.string.done_text))
.start(getContext(), this);
}

7
app/src/main/java/com/remit/jmecustomer/features/recipientmanagement/presenter/recipientaddeditV3/edit/RecipientEditV3ViewModel.java

@ -242,10 +242,11 @@ public class RecipientEditV3ViewModel extends RecipientAddEditBaseV3ViewModel {
if (validator.getRecipientDetail().getNativeCountry() != null && !TextUtils.isEmpty(validator.getRecipientDetail().getNativeCountry())) {
view.getRecipientAddEditV3ContractInterface().updateValueToWidgetNativeCountry(validator.getRecipientDetail().getNativeCountry());
view.getRecipientAddEditV3ContractInterface().showNativeCountryFlag(CountryFlagMapper.getFlagFromCountryCode(validator.getRecipientDetail().getNativeCountryCode()));
} else {
view.getRecipientAddEditV3ContractInterface().updateValueToWidgetNativeCountry(validator.getSelectedCountryServiceData().getCountryName());
view.getRecipientAddEditV3ContractInterface().showNativeCountryFlag(CountryFlagMapper.getFlagFromCountryCode(validator.getSelectedCountryServiceData().getCountryCode()));
}
// else {
// view.getRecipientAddEditV3ContractInterface().updateValueToWidgetNativeCountry(validator.getSelectedCountryServiceData().getCountryName());
// view.getRecipientAddEditV3ContractInterface().showNativeCountryFlag(CountryFlagMapper.getFlagFromCountryCode(validator.getSelectedCountryServiceData().getCountryCode()));
// }
if (validator.getRecipientDetail().getPaymentMethod() != null)
view.getRecipientAddEditV3ContractInterface().updateValueToWidgetSelectedPaymentMethod(validator.getRecipientDetail().getPaymentMethod().getName());

Loading…
Cancel
Save