override fun onDestinationChanged(controller: NavController, destination: NavDestination, arguments: Bundle?) { if (destination.id != R.id.bookmarkFragment || differentFromSelectedFolder(arguments)) { // TODO this is currently called when opening the bookmark menu. Fix this if possible bookmarkInteractor.onAllBookmarksDeselected() } }
Deselects all items when the user navigates to a different fragment or a different folder.