title: RecyclerView LinearLayout manager always returns -1 in landscape mode - findLastCompletelyVisibleItemPosition()
body: <p>I'm using <code>findLastCompletelyVisibleItemPosition()</code> to determine the last visible item in my RecyclerView.</p>
  
  <p>Here is a code snippet of how I'm setting up my layout:</p>
  
  <pre><code>    mRecyclerView.setHasFixedSize(true);
      LinearLayoutManager mLayoutManager = new LinearLayoutManager(getContext());
      mRecyclerView.setLayoutManager(mLayoutManager);
  </code></pre>
  
  <p>Layout XML: </p>
  
  <pre><code>&lt;android.support.v4.widget.SwipeRefreshLayout  xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/swipe_container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  &lt;FrameLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/message_list"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@android:color/white"
          android:paddingBottom="@dimen/footer_progress_bar"
          android:paddingTop="16dp"
          android:scrollbars="vertical" /&gt;
  
      &lt;ProgressBar
          android:id="@+id/progress_bar"
          android:layout_width="50dp"
          android:layout_height="50dp"
          android:layout_gravity="center"
          android:visibility="gone" /&gt;
  
      &lt;ProgressBar
          android:id="@+id/footer_progress_bar"
          android:layout_width="@dimen/footer_progress_bar"
          android:layout_height="@dimen/footer_progress_bar"
          android:layout_gravity="center|bottom"
          android:visibility="gone" /&gt;
  
  &lt;/FrameLayout&gt;
  &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  </code></pre>
  
  <p>In portrait mode, this works fine and always returns the right position.</p>
  
  <p>However in landscape mode, the position returned is always -1.</p>
  
  <p>My question is:</p>
  
  <p>Does anyone know why this happens? </p>
  
  <p>How I can override this to return the right position?</p>
  
  <p>Or can anyone recommend another solution to get the right position of the last item in landscape?</p>