Cicerone icon indicating copy to clipboard operation
Cicerone copied to clipboard

Crash in version 7.1

Open robertlevonyan opened this issue 3 years ago • 2 comments

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 avatar Nov 08 '21 08:11 robertlevonyan

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

robertlevonyan avatar Nov 08 '21 09:11 robertlevonyan

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

GreyLabsDev avatar Sep 17 '22 21:09 GreyLabsDev