Softeq / XToolkit.WhiteLabel

Modular MVVM framework for fast creating powerful cross-platform applications with Xamarin & .NET for Mobile
https://softeq.github.io/XToolkit.WhiteLabel/
MIT License
25 stars 5 forks source link

Removed executePendingTransaction call from the navigation service #511

Closed dimysa closed 1 year ago

dimysa commented 1 year ago

Description

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())

API Changes

None

Platforms Affected

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

PR Checklist