title: Android LoaderManager.LoaderCallbacks<Cursor> adapter.swapCursor(data)
body: <p>I have a Fragment with ListView that implements LoaderManager.LoaderCallbacks
  and sometimes clicking on an list items does not trigger listener. I see clicked item highlighting but nothing more. It happens when onLoadFinished and onItemClick execute at the same time. 
  Here is the code:</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  
      View view = inflater.inflate(R.layout.folder_list_fragment, container, false);
      listView = (ListView) view.findViewById(R.id.listView);
      listView.setOnItemClickListener(new ListViewOnItemClickListener());
  }
  
  private final class ListViewOnItemClickListener implements OnItemClickListener {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              System.out.println("on click");
              //load new data from the database and execute update asynch
          }
      }
  
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
      super.onActivityCreated(savedInstanceState);
      listView.setAdapter(adapter);
  }
  
  @Override
  public void onLoadFinished(Loader&lt;Cursor&gt; loader, Cursor data) {
      adapter.swapCursor(data);
      System.out.println("swapCursor");
  }
  </code></pre>
  
  <p>Log is:</p>
  
  <p>swapCursor - first time initialising</p>
  
  <p>on click - click on item<br>
  swapCursor - update data<br>
  swapCursor - update data</p>
  
  <p>on click - click on item 
  swapCursor - update data</p>
  
  <p>click on item, see background highlighting like for normal click<br>
  swapCursor - here is the problem, I have clicked on an item, but notification from previous update has discarded onClick, no any print about click to the log</p>
  
  <p>on click - next time clicking</p>