From 83f9eb4949be2cd23079bb9dbd01ab6761e4c931 Mon Sep 17 00:00:00 2001 From: PatelVatsalB21 Date: Sat, 13 Feb 2021 22:57:15 +0530 Subject: [PATCH] Fixes #1710: Beneficiary List updates as beneficiary created --- .../mobile/ui/fragments/BeneficiaryApplicationFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mifos/mobile/ui/fragments/BeneficiaryApplicationFragment.kt b/app/src/main/java/org/mifos/mobile/ui/fragments/BeneficiaryApplicationFragment.kt index 9092aba4f..4a06b5306 100644 --- a/app/src/main/java/org/mifos/mobile/ui/fragments/BeneficiaryApplicationFragment.kt +++ b/app/src/main/java/org/mifos/mobile/ui/fragments/BeneficiaryApplicationFragment.kt @@ -251,7 +251,8 @@ class BeneficiaryApplicationFragment : BaseFragment(), BeneficiaryApplicationVie */ override fun showBeneficiaryCreatedSuccessfully() { Toaster.show(rootView, getString(R.string.beneficiary_created_successfully)) - activity?.finish() + (activity as BaseActivity?)?.clearFragmentBackStack() + (activity as BaseActivity?)?.replaceFragment(BeneficiaryListFragment.newInstance(), false, R.id.container) } /**