Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CentersActivity : MifosBaseActivity(), GroupListFragment.OnFragmentInterac
replaceFragment(GroupListFragment.newInstance(centerId), true, R.id.container)
}

override fun loadClientsOfGroup(clientList: List<Client>) {
override fun loadClientsOfGroup(clientList: List<Client?>?) {
replaceFragment(ClientListFragment.newInstance(clientList, true), true, R.id.container)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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)
}

/**
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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<Client>?) {
Expand Down