-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
FragmentManager is already executing transactions #214
Comments
same |
this should be fixed with #233 |
I'm targeting API 27 and I also have this error if I request the permission onViewCreated on a Fragment. What's the workaround? @epool |
I have the same issue as @leodeleon22 using version 0.10.1. Stack trace:
I tried moving the initialisation to |
@leodeleon22 @chetbox now when you instantiate |
mate this is bug itself. not the fix. |
Has anyone found solution? I solved this by running after delay: new Handler().postDelayed(() -> {
// run rxPermission
}, 1000) but it is dirty hack |
The dirty hack works I just added a second debounce to the chain rxPermissions.requestEachCombined( |
hi kid |
Any ideas, when this bug will be fixed? This is ridicules. You have inside method RxPermission, with could accept Activity, or Fragment. But for Activity it's crashing. |
@GensaGames This is not ridiculous. It's been a long time since a saw the maintainer active in this repository. But! |
@mrArtCore I'm sorry for my message tone above. |
@GensaGames |
To be honest, I am not sure there is actually a fix. It is the same as calling Activity.startActivityForResult inside Fragment and wait for result in Fragment.onActivityResult. I mean, the only solution I see is creating annotations to say IDE to count it as a warning with the message. Just use the right methods in the right places. For me, the fix is made and I use the right constructor in the right place. |
in this code :
rxPermissions = new RxPermissions(this);
I don't know exactly the reason behind this as it was working before without any issue.
The text was updated successfully, but these errors were encountered: