title: ListFragment onListItemClick don't work anymore with Android 4.1 Jelly Bean
body: <p>I am testing my app in the new <strong>Android system 4.1 Jelly Bean</strong>, and my <code>ListFragment</code> is not working properly anymore.</p>
  
  <p>When I click on a list's row, the function <code>onListItemClick</code> is not call anymore. It use to work juste fine on Android 3.0 and Android 2.x</p>
  
  <p>Does anything change into Android 4.x concerning the <code>ListFragment</code> or the <code>onListItemClick</code> ?</p>
  
  <p>One precision, I am using 'ListFragment' <strong>from the android-support-v4.jar</strong></p>
  
  <pre><code> android.support.v4.app.ListFragment
  </code></pre>
  
  <p>Here is my <code>ListFrangment</code> code :</p>
  
  <pre><code>public class MessagesListFragment extends ListFragment {
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 
          View view = inflater.inflate(R.layout.pull_to_refresh, null);
          return view;
      }
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState) {
           /* some initialization, working fine */
           /* Settings of the list Adapter*/
  
      @Override
      public void onListItemClick(ListView l, View v, int position, long id) {
           int messagePosition = 0;
           if(position&gt;0){
                messagePosition = position - 1;
            } else {
                Log.e("MessageListView", "[onListItemClick] position is inferior to zero,"
                  + " message position is set to 0");
            }
            String expediteur = DomboxHome.messagesService.messagesArrayList.get(messagePosition).getExpediteur();
            String contenu = DomboxHome.messagesService.messagesArrayList.get(messagePosition).getContenu();
            Log.d("MessageListView","[onListItemClick] click on message position : "+messagePosition);
  
            ((MessagesActivity)getActivity()).onChooseMessageDetails(expediteur, contenu);
  
       }
  </code></pre>