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

Crash in version 7.1 #168

Open
robertlevonyan opened this issue Nov 8, 2021 · 2 comments
Open

Crash in version 7.1 #168

robertlevonyan opened this issue Nov 8, 2021 · 2 comments

Comments

@robertlevonyan
Copy link

java.lang.IllegalStateException: FragmentManager is already executing transactions
        at androidx.fragment.app.FragmentManager.ensureExecReady(FragmentManager.java:1636)
        at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1695)
        at androidx.fragment.app.FragmentManager.executePendingTransactions(FragmentManager.java:564)
        at com.github.terrakok.cicerone.androidx.AppNavigator.applyCommands(AppNavigator.kt:25)
@robertlevonyan
Copy link
Author

view?.post { navigator.applyCommands(arrayOf(Replace(screen = screen))) } is fixing the problem, but I think this should be done inside the lib

@GreyLabsDev
Copy link

Or maybe Handler(Looper.getMainLooper()) with handler.post {navigator.applyCommands(arrayOf(Replace(screen = screen)))}, for more save using this method without taking view reference

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

2 participants