Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FragmentManager is already executing transactions #29

Open
ArmChilingarov opened this issue Aug 12, 2019 · 7 comments
Open

FragmentManager is already executing transactions #29

ArmChilingarov opened this issue Aug 12, 2019 · 7 comments

Comments

@ArmChilingarov
Copy link
Contributor

this happens when asking permission in fragments onViewCreated method .
adding some delay fixes the issue , its because , we trying add fragment when fragmentManager is already in execution .

@tim4dev
Copy link

tim4dev commented Aug 24, 2019

The same issue.

@Nghicv
Copy link

Nghicv commented Sep 30, 2019

I have faced this issue too

@ArmChilingarov
Copy link
Contributor Author

#30
fixed this issue , please check the pr

@3mph4515
Copy link

RxPermissions already got over this issue here tbruyelle/RxPermissions#214

@3mph4515
Copy link

As far as I understand, the main idea is to use getSupportFragmentManager if the user called permissions from an activity and to use getChildFragmentManager if it was called from a fragment. Removing commitNowAllowingStateLoss is just a workaround.

@iamsr
Copy link

iamsr commented Dec 19, 2019

I face this similar problem when I was requesting the system permission e.g WRITE_SETTINGS and was having a call to code which wrapped inside ask permission on the onResume of a fragment that causes this exception to occur. Just make sure about the call you are making inside onResume in your code don't include any call to ask permission inside onResume.

@mosentest
Copy link

hi kid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants