Skip to content

Commit

Permalink
fix: replaced launch with launchWhenResumed in SummaryProductFragment
Browse files Browse the repository at this point in the history
Should fix some errors with fragment not being attached.
  • Loading branch information
VaiTon committed Aug 25, 2021
1 parent 783ba34 commit a6b3161
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class SummaryProductFragment : BaseFragment(), ISummaryProductPresenter.View {

// Checks the product states_tags to determine which prompt to be shown
refreshStatesTagsPrompt()
lifecycleScope.launch {
lifecycleScope.launchWhenResumed {
presenter.loadAllergens()
presenter.loadCategories()
presenter.loadLabels()
Expand Down

0 comments on commit a6b3161

Please sign in to comment.