Currently, on plasma mobile, if you navigate from a page that contains contextual actions to a page without contextual actions and back, context drawer disappears. Looking for contextual actions in pageStack.layers.currentItem only when pageStack.layers.depth > 1, then checking pageStack.currentItem and finally, checking pageStack.lastVisibleItem, we ensure that we look for contextual actions in the most relevant page.
- R169:b897b37b254b: Prevent context drawer from disappearing
On mobile, navigate from a page that contains contextual actions to a page without contextual actions and back.
Context drawer disappears
Context drawer is still visible