Puzzle: Fragment stack pop cause issue on toolbar

Using fragment, with toolbar is so commonly done these days, and I don’t expect to find any issue with it, until this week. I faced this seemingly weird issue and uncovering the cause of it took me about 2 days. Sharing this so you could learn about it early if you ever see such behavior.

Also I have a related puzzle below for you to solve 😉.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store