Calling executePendingTransaction if we want to swap two fragments will very quickly lead to an IllegalStateException: FragmentManager is already executing transactions, so it should be removed. It looks like just calling commit, although asynchronous, won't cause problems, since each commit is queued and executed when the main thread is ready
[docs](https://developer.android.com/reference/androidx/fragment/app/FragmentTransaction#commit())
Description
Calling
executePendingTransaction
if we want to swap two fragments will very quickly lead to anIllegalStateException: FragmentManager is already executing transactions
, so it should be removed. It looks like just callingcommit
, although asynchronous, won't cause problems, since eachcommit
is queued and executed when the main thread is ready [docs](https://developer.android.com/reference/androidx/fragment/app/FragmentTransaction#commit())API Changes
None
Platforms Affected
Behavioral/Visual Changes
None
Before/After Screenshots
Not applicable
PR Checklist