Fragment replacement triggers onQueryTextChange on searchview
问题 This is how I navigate through my app: Open fragment with list Filter list by a text entered in searchview Tap on listitem (list fragment gets replaced by detail fragment) Navigate back (detail fragment gets replaced by list fragment) When I navigate from list- to detail-fragment, I want to keep the current filter of the searchview in a string variable. I store the value of the searchview when onQueryTextChange is executed. The problem: I can't store the actual filter-value because