1 min readMar 17, 2020
As explained in the article, I use a custom solution which I’ve been maintaining as an open-source library called simple-stack, you can find tutorials too.
I do not use Jetpack Navigation specifically because asymmetric navigation is not as easy as it should be (in my opinion, anyway).
But with simple-stack, this scenario is as easy as backstack.setHistory(History.of(B, D), StateChange.REPLACE)
.