If you don't want the data from the previous instance to appear, simply create a new instance of ContactPickFragment
each time you show it.
Clearing data in onCreateView()
has no effect because view state is restored AFTER onCreateView()
. Your Fragment has no view before onCreateView()
and so Android cannot possibly apply the previous state any earlier. Values set on the views during onCreateView()
will be overwritten by their previous values.