Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Fix-319: Add/edit leader/member bug fixed on next fragment #182

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
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 @@ -14,6 +14,7 @@ import com.stepstone.stepper.VerificationError
import com.wajahatkarim3.easyvalidation.core.view_ktx.validator
import kotlinx.android.synthetic.main.fragment_step_add_group_leader.*
import kotlinx.android.synthetic.main.fragment_step_add_group_leader.view.*
import kotlinx.android.synthetic.main.fragment_step_add_group_member.*
import kotlinx.android.synthetic.main.fragment_step_add_group_member.view.*
import kotlinx.android.synthetic.main.fragment_step_add_group_member.view.rv_name
import org.apache.fineract.R
Expand Down Expand Up @@ -147,6 +148,10 @@ class AddGroupLeaderStepFragment : FineractBaseFragment(), Step, NameListAdapter
Toast.makeText(context, getString(R.string.error_group_atleast_1_member), Toast.LENGTH_SHORT).show()
return VerificationError("")
}
if (llAddLeader.visibility == View.VISIBLE) {
etNewLeader.text.clear()
llAddLeader.visibility = View.GONE
}
(activity as CreateGroupActivity).setLeaders(leaders)
return null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ class AddGroupMemberStepFragment : FineractBaseFragment(), Step, NameListAdapter
Toast.makeText(context, getString(R.string.error_group_atleast_1_member), Toast.LENGTH_SHORT).show()
return VerificationError("")
}
if (llAddMember.visibility == View.VISIBLE) {
etNewMember.text.clear()
llAddMember.visibility = View.GONE
}
(activity as CreateGroupActivity).setMembers(members)
return null
}
Expand Down