From ad8480512c059aa3407af61dbdb55b50b91a8415 Mon Sep 17 00:00:00 2001 From: gme_2 Date: Fri, 5 Oct 2018 17:50:33 +0900 Subject: [PATCH] removed auto end api while calculating exchange rates --- .../User Interface/View/ExchangeRatesViewController.swift | 8 ++++++-- .../View/SendMoneyExchangeRateViewController.swift | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift b/GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift index 17de1c2b..ed8bdba5 100644 --- a/GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift +++ b/GMERemittance/Module/ExchangeRates/User Interface/View/ExchangeRatesViewController.swift @@ -188,6 +188,7 @@ class ExchangeRatesViewController: UIViewController { self.hideProgressHud() }) { (error) in self.hideProgressHud() + self.view.endEditing(true) self.alert(message: error.localizedDescription) } @@ -218,7 +219,7 @@ class ExchangeRatesViewController: UIViewController { func countrySelected(model: [ExchangeRateModel]) { self.selectedExchageRateModel = model.first - self.calculateExchangeRate(nil) +// self.calculateExchangeRate(nil) // show country with flag. } @@ -307,6 +308,7 @@ class ExchangeRatesViewController: UIViewController { self.exchangeRateModels = models }) { (error) in self.hideProgressHud() + self.view.endEditing(true) self.alert(message: error.localizedDescription) } } @@ -347,6 +349,7 @@ class ExchangeRatesViewController: UIViewController { } func show(error: String) { + self.view.endEditing(true) self.alert(message: error) } @@ -446,7 +449,8 @@ extension ExchangeRatesViewController: FetchCountryCurrencyInformation, getExcha extension ExchangeRatesViewController: UITextFieldDelegate { func textFieldDidEndEditing(_ textField: UITextField) { - self.calculateExchangeRate(nil) + self.view.endEditing(true) +// self.calculateExchangeRate(nil) } } diff --git a/GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift b/GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift index 60f005e6..9a5e200a 100644 --- a/GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift +++ b/GMERemittance/Module/SendMoney/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift @@ -229,7 +229,7 @@ class SendMoneyExchangeRateViewController: UIViewController { self.selectedCurrencyViewModel = model calcBy.lowercased() == "c" ? (reciepientTextField.text = "") : (senderTextField.text = "") } - self.calculate() +// self.calculate() } private func configureViews() { @@ -304,6 +304,6 @@ extension SendMoneyExchangeRateViewController { extension SendMoneyExchangeRateViewController: UITextFieldDelegate { func textFieldDidEndEditing(_ textField: UITextField) { - self.calculate() +// self.calculate() } }