title: RecyclerView Adapter getItemCount not called for IceCreamSandwich
body: <p>There is a case where <code>getItemCount</code> within the <code>RecycerView</code> Adapter is not called for Android 4.0.3 (<code>IceCreamSandwich</code>). All other API versions don't have any problems. I create my adapter as follows:</p>
  
  <pre><code>Log.i(LOG_TAG, "array size = " + myArray.size());
  adapter = new MyListAdapter(context, myArray, this);
  LinearLayoutManager layoutManager = new LinearLayoutManager(this);
  layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
  recyclerView.setLayoutManager(layoutManager);
  recyclerView.setAdapter(adapter);
  </code></pre>
  
  <p>I inserted the <code>Log.i</code> to confirm there is an element in the array, which there is. Within the <code>RecyclerView</code> Adapter's constructor, I have:</p>
  
  <pre><code>public MyListAdapter(Context context, List&lt;dataModel&gt; data, MyListener listener) {
      this.context = context;
      this.mData = data;
      this.mInflater = LayoutInflater.from(context);
      this.mListener = listener;
  
      Log.i(LOG_TAG, "data size = " + this.mData.size());
  }
  </code></pre>
  
  <p>And the data size is not empty within the constructor. What could be causing the <code>getItemCount</code> to not be called when the adapter is created and set to a <code>RecyclerView</code>? Again this only is happening with the <code>IceCreamSandwich</code> API, all others work perfectly.</p>