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

Commit

Permalink
resolve issue for activity launching multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
EGOR-IND committed Mar 7, 2021
1 parent 592099e commit 9427696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ void addCustomer() {
isNewCustomer = true;
Intent intent = new Intent(getActivity(), CreateCustomerActivity.class);
intent.putExtra(ConstantKeys.CUSTOMER_ACTION, CustomerAction.CREATE);
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
startActivity(intent);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class GroupListFragment : FineractBaseFragment(), OnItemClickListener {
fun addGroup() {
val intent = Intent(activity, CreateGroupActivity::class.java).apply {
putExtra(Constants.GROUP_ACTION, GroupAction.CREATE)
setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP)
}
startActivity(intent)
}
Expand Down

0 comments on commit 9427696

Please sign in to comment.