Browse Source

rate calculation done

master
preyearegmi 6 years ago
parent
commit
8f4a73741b
  1. 14
      app/src/main/java/com/gmeremit/online/gmeremittance_native/exchange_rate/view/ExchangeMethodV2Activity.java

14
app/src/main/java/com/gmeremit/online/gmeremittance_native/exchange_rate/view/ExchangeMethodV2Activity.java

@ -186,6 +186,8 @@ public class ExchangeMethodV2Activity extends BaseActivity implements PaymentMod
shouldCaulatedByRecipient = false; shouldCaulatedByRecipient = false;
} }
prepareToGetForex();
} }
@Override @Override
@ -264,10 +266,11 @@ public class ExchangeMethodV2Activity extends BaseActivity implements PaymentMod
registerAvailableTextWatchersForEditText(this.sendMoneyEditText, true); registerAvailableTextWatchersForEditText(this.sendMoneyEditText, true);
registerAvailableTextWatchersForEditText(this.recieveMoneyEditText, true); registerAvailableTextWatchersForEditText(this.recieveMoneyEditText, true);
} }
showSelectedRecipient(defaultCountryPaymentService.getCountryCode(), defaultCountryPaymentService.getCurrency());
showPaymentService(true, defaultCountryPaymentService.getServiceAvailable());
this.selectedCountryPaymentService = defaultCountryPaymentService; this.selectedCountryPaymentService = defaultCountryPaymentService;
this.selectedPaymentMode = defaultCountryPaymentService.getServiceAvailable().get(0); this.selectedPaymentMode = defaultCountryPaymentService.getServiceAvailable().get(0);
showSelectedRecipient(defaultCountryPaymentService.getCountryCode(), defaultCountryPaymentService.getCurrency());
showPaymentService(true, defaultCountryPaymentService.getServiceAvailable());
} else { } else {
@ -291,15 +294,16 @@ public class ExchangeMethodV2Activity extends BaseActivity implements PaymentMod
} }
} }
showSelectedRecipient(firstSelectedItem.getCountryCode(), firstSelectedItem.getCurrency());
showPaymentService(true, firstSelectedItem.getServiceAvailable());
this.selectedCountryPaymentService = firstSelectedItem; this.selectedCountryPaymentService = firstSelectedItem;
this.selectedPaymentMode = firstSelectedItem.getServiceAvailable().get(0); this.selectedPaymentMode = firstSelectedItem.getServiceAvailable().get(0);
showSelectedRecipient(firstSelectedItem.getCountryCode(), firstSelectedItem.getCurrency());
showPaymentService(true, firstSelectedItem.getServiceAvailable());
} }
this.paymentServiceList = countryPaymentServiceList; this.paymentServiceList = countryPaymentServiceList;
prepareToGetForex();
// prepareToGetForex();
} }
private void registerTextWatchers(boolean action) { private void registerTextWatchers(boolean action) {

Loading…
Cancel
Save