title: Passing Context to ArrayAdapter inside Fragment with setRetainInstance(true) will cause leak?
body: <p>I have a ListFragment which would show list of items via an ArrayAdapter, I'm trying to handle configuration change (Device Rotation) I feel passing activity context to Array Adapter might cause Memory Leak when Activity is restarted on rotation and ListFragment adapter is retained because i'm using setRetainInstance(true), can someone tell me if my understanding is true? If so what is the best way to handle this. And yes I don't want to null my adapter onDetach and reuse it once Fragment view is re-created. </p>
  
  <pre><code>    public class DummyXListFragment extends RoboSherlockListFragment{
  
          @Override
          public void onCreate(Bundle savedInstanceState) {   
               super.onCreate(savedInstanceState);
               setRetainInstance(true);   
           }   
  
           @Override
           public void onActivityCreated(Bundle savedInstanceState) {
               super.onActivityCreated(savedInstanceState);
  
  
              if (adapter == null)
              adapter = new DummyItemAdapter(getActivity(),
                  android.R.layout.simple_list_item_1, list);
  
      }
  </code></pre>