Browse Source

Update with kftc branch

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

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

@ -195,20 +195,24 @@ public class ExchangeMethodV2Activity extends BaseActivity implements PaymentMod
} }
@Override
public void onPaymentModeSelected(PaymentMode selectedData) {
this.selectedPaymentMode = selectedData;
//Check if onPaymentModeSelected not called first time
if (sendMoneyEditText.getText().length() > 0) {
registerAvailableTextWatchersForEditText(recieveMoneyEditText, false);
recieveMoneyEditText.setText("");
registerAvailableTextWatchersForEditText(recieveMoneyEditText, true);
shouldCaulatedByRecipient = false;
}
//TODO Implementation for calculating exchange rate on the basis of provided default receiving amount for native country only //
// @Override
// public void onPaymentModeSelected(PaymentMode selectedData) {
// this.selectedPaymentMode = selectedData;
// //Check if onPaymentModeSelected not called first time
// if (sendMoneyEditText.getText().length() > 0) {
// registerAvailableTextWatchersForEditText(recieveMoneyEditText, false);
// recieveMoneyEditText.setText("");
// registerAvailableTextWatchersForEditText(recieveMoneyEditText, true);
// shouldCaulatedByRecipient = false;
// }
//
// prepareToGetForex();
//
// }
prepareToGetForex();
}
//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 // @Override
@ -226,6 +230,15 @@ public class ExchangeMethodV2Activity extends BaseActivity implements PaymentMod
// } // }
// } // }
// TODO Implementation for calculating exchange rate on the basis of provided default receiving amount for corresponding currency.
@Override
public void onPaymentModeSelected(PaymentMode selectedData) {
this.selectedPaymentMode = selectedData;
prepareToGetForex();
}
//TODO Implementation for calculating exchange rate on the basis of provided default receiving amount for corresponding currency. //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) {

Loading…
Cancel
Save