From 7aa62258ac55a34ecf947d808573ade17acc5fe9 Mon Sep 17 00:00:00 2001 From: robustTechie Date: Tue, 16 Feb 2021 00:33:34 +0530 Subject: [PATCH] minor issue fix --- .../java/com/mifos/mifosxdroid/online/CentersActivity.kt | 2 +- .../java/com/mifos/mifosxdroid/online/ClientActivity.kt | 9 ++++----- .../java/com/mifos/mifosxdroid/online/GroupsActivity.kt | 7 +++---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/CentersActivity.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/CentersActivity.kt index 3cd5d096db8..ded2a883491 100755 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/CentersActivity.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/CentersActivity.kt @@ -32,7 +32,7 @@ class CentersActivity : MifosBaseActivity(), GroupListFragment.OnFragmentInterac replaceFragment(GroupListFragment.newInstance(centerId), true, R.id.container) } - override fun loadClientsOfGroup(clientList: List) { + override fun loadClientsOfGroup(clientList: List?) { replaceFragment(ClientListFragment.newInstance(clientList, true), true, R.id.container) } diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/ClientActivity.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/ClientActivity.kt index 8353fa3ba56..2bfcbe02451 100755 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/ClientActivity.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/ClientActivity.kt @@ -79,7 +79,7 @@ class ClientActivity : MifosBaseActivity(), ClientDetailsFragment.OnFragmentInte * It will display the Loan Repayment Fragment where * the Information of the repayment has to be filled in. */ - override fun makeRepayment(loan: LoanWithAssociations) { + override fun makeRepayment(loan: LoanWithAssociations?) { replaceFragment(LoanRepaymentFragment.newInstance(loan), true, R.id.container) } @@ -116,9 +116,8 @@ class ClientActivity : MifosBaseActivity(), ClientDetailsFragment.OnFragmentInte * * The transactionType defines if the transaction is a Deposit or a Withdrawal */ - override fun doTransaction(savingsAccountWithAssociations: SavingsAccountWithAssociations, - transactionType: String, accountType: DepositType) { - replaceFragment(SavingsAccountTransactionFragment.newInstance(savingsAccountWithAssociations, transactionType, accountType), true, R.id.container) + override fun doTransaction(savingsAccountWithAssociations: SavingsAccountWithAssociations?, transactionType: String?, accountType: DepositType?) { + replaceFragment(SavingsAccountTransactionFragment.newInstance(savingsAccountWithAssociations!!, transactionType, accountType), true, R.id.container) } /** @@ -127,7 +126,7 @@ class ClientActivity : MifosBaseActivity(), ClientDetailsFragment.OnFragmentInte * @param survey Survey * @param clientId Client Id */ - override fun loadSurveyQuestion(survey: Survey, clientId: Int) { + override fun loadSurveyQuestion(survey: Survey?, clientId: Int) { val myIntent = Intent(this, SurveyQuestionActivity::class.java) myIntent.putExtra(Constants.SURVEYS, Gson().toJson(survey)) myIntent.putExtra(Constants.CLIENT_ID, clientId) diff --git a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/GroupsActivity.kt b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/GroupsActivity.kt index 80ccd0db9ae..d3bf2bca75c 100644 --- a/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/GroupsActivity.kt +++ b/mifosng-android/src/main/java/com/mifos/mifosxdroid/online/GroupsActivity.kt @@ -62,7 +62,7 @@ class GroupsActivity : MifosBaseActivity(), GroupDetailsFragment.OnFragmentInter * It will display the Loan Repayment Fragment where * the Information of the repayment has to be filled in. */ - override fun makeRepayment(loan: LoanWithAssociations) { + override fun makeRepayment(loan: LoanWithAssociations?) { replaceFragment(LoanRepaymentFragment.newInstance(loan), true, R.id.container) } @@ -99,9 +99,8 @@ class GroupsActivity : MifosBaseActivity(), GroupDetailsFragment.OnFragmentInter * * The transactionType defines if the transaction is a Deposit or a Withdrawal */ - override fun doTransaction(savingsAccountWithAssociations: SavingsAccountWithAssociations, - transactionType: String, accountType: DepositType) { - replaceFragment(SavingsAccountTransactionFragment.newInstance(savingsAccountWithAssociations, transactionType, accountType), true, R.id.container) + override fun doTransaction(savingsAccountWithAssociations: SavingsAccountWithAssociations?, transactionType: String?, accountType: DepositType?) { + replaceFragment(SavingsAccountTransactionFragment.newInstance(savingsAccountWithAssociations!!, transactionType, accountType), true, R.id.container) } override fun loadGroupClients(clients: List?) {