|
@ -211,33 +211,36 @@ public class ExchangeMethodV2Activity extends BaseActivity implements PaymentMod |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//TODO Implementation for calculating exchange rate on the basis of provided default receiving amount for native country only // |
|
|
//TODO Implementation for calculating exchange rate on the basis of provided default receiving amount for native country only // |
|
|
@Override |
|
|
|
|
|
public void onCountrySelected(CountryPaymentService countryPaymentService) { |
|
|
|
|
|
this.selectedCountryPaymentService = countryPaymentService; |
|
|
|
|
|
showSelectedRecipient(countryPaymentService.getCountryCode(), countryPaymentService.getCurrency()); |
|
|
|
|
|
registerAvailableTextWatchersForEditText(recieveMoneyEditText, false); |
|
|
|
|
|
recieveMoneyEditText.setText(""); |
|
|
|
|
|
shouldCaulatedByRecipient = false; |
|
|
|
|
|
registerAvailableTextWatchersForEditText(recieveMoneyEditText, true); |
|
|
|
|
|
showPaymentService(true, countryPaymentService.getServiceAvailable()); |
|
|
|
|
|
if (this.countryListingDialog != null) { |
|
|
|
|
|
this.countryListingDialog.hideKeyboard(); |
|
|
|
|
|
this.countryListingDialog.dismiss(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//TODO Implementation for calculating exchange rate on the basis of provided default receiving amount for corresponding currency. |
|
|
|
|
|
// @Override |
|
|
// @Override |
|
|
// public void onCountrySelected(CountryPaymentService countryPaymentService) { |
|
|
// public void onCountrySelected(CountryPaymentService countryPaymentService) { |
|
|
// this.selectedCountryPaymentService = countryPaymentService; |
|
|
// this.selectedCountryPaymentService = countryPaymentService; |
|
|
// showSelectedRecipient(countryPaymentService.getCountryCode(), countryPaymentService.getCurrency()); |
|
|
// showSelectedRecipient(countryPaymentService.getCountryCode(), countryPaymentService.getCurrency()); |
|
|
|
|
|
// registerAvailableTextWatchersForEditText(recieveMoneyEditText, false); |
|
|
|
|
|
// recieveMoneyEditText.setText(""); |
|
|
|
|
|
// shouldCaulatedByRecipient = false; |
|
|
|
|
|
// registerAvailableTextWatchersForEditText(recieveMoneyEditText, true); |
|
|
|
|
|
// showPaymentService(true, countryPaymentService.getServiceAvailable()); |
|
|
// if (this.countryListingDialog != null) { |
|
|
// if (this.countryListingDialog != null) { |
|
|
// this.countryListingDialog.hideKeyboard(); |
|
|
// this.countryListingDialog.hideKeyboard(); |
|
|
// this.countryListingDialog.dismiss(); |
|
|
// this.countryListingDialog.dismiss(); |
|
|
// } |
|
|
// } |
|
|
// this.presenter.getDefaultReceivingAmountForSelectedCurrency(countryPaymentService); |
|
|
|
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
//TODO Implementation for calculating exchange rate on the basis of provided default receiving amount for corresponding currency. |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onCountrySelected(CountryPaymentService countryPaymentService) { |
|
|
|
|
|
if (this.countryListingDialog != null) { |
|
|
|
|
|
this.countryListingDialog.hideKeyboard(); |
|
|
|
|
|
this.countryListingDialog.dismiss(); |
|
|
|
|
|
} |
|
|
|
|
|
if(this.selectedCountryPaymentService!=null&&(this.selectedCountryPaymentService.getCurrency().equalsIgnoreCase(countryPaymentService.getCurrency()))&&(this.selectedCountryPaymentService.getCountryCode().equalsIgnoreCase(countryPaymentService.getCountryCode()))) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
this.selectedCountryPaymentService = countryPaymentService; |
|
|
|
|
|
showSelectedRecipient(countryPaymentService.getCountryCode(), countryPaymentService.getCurrency()); |
|
|
|
|
|
this.presenter.getDefaultReceivingAmountForSelectedCurrency(countryPaymentService); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void updateReceivingAmountAndFetchExchangeRate(String amount) { |
|
|
public void updateReceivingAmountAndFetchExchangeRate(String amount) { |
|
|