How to skip SearchView in back stack of navigation controller?
The call docPageSearchView.show() opens SearchView. Then, pick an item from the search result and open a new instance of the same fragment to display the new content ("viewer fragment"). Now, press the back button. SearchView opens again. How do I get back to the previous instance of the viewer fragment? In other words, how do I skip SearchView?
override fun onMenuItemClick(item: MenuItem): Boolean {
when (item.itemId) {
R.id.doc_page_search_menu_item ->...