title: RecyclerView empty on rotate
body: <p>I learned from here how to prevent restart on orientation change
  <a href="https://stackoverflow.com/questions/4568558/how-to-avoid-restarting-activity-when-orientation-changes-on-android">How to avoid restarting activity when orientation changes on Android</a></p>
  
  <p>Thus I implemented it</p>
  
  <p>In my Manifest I make sure rotate doesn't trigger restart</p>
  
  <pre><code>android:configChanges="keyboardHidden|orientation|screenSize"
  </code></pre>
  
  <p>My layout is very simple</p>
  
  <pre><code>&lt;RelativeLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_height="match_parent"
          android:layout_width="match_parent"&gt;
  
      &lt;ScrollView
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:id="@+id/scroll"&gt;
  
          &lt;android.support.v7.widget.RecyclerView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:id="@+id/list_of_items"/&gt;
  
      &lt;/ScrollView&gt;
  
      &lt;Button
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/add"
              android:layout_alignParentBottom="true"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>In my MainActivity I set</p>
  
  <pre><code>@Override
  public void onConfigurationChanged(Configuration newConfig)
  {
      super.onConfigurationChanged(newConfig);
      setContentView(R.layout.activity_main);
  }
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.activity_main);
  
      RecyclerView itemsView = findViewById(R.id.list_of_items);
      itemsView.setLayoutManager(new LinearLayoutManager(this));
      itemsView.setNestedScrollingEnabled(false);
  
      ItemsAdapter items = new ItemsAdapter(this);
      itemsView.setAdapter(items);
  }
  </code></pre>
  
  <p>Whenever rotate happens I checked inside <code>onConfigurationChanged</code> the item Count and visibility state, and log prints that the recycler view is visible and that it contains x items, yet somehow on rotate it never shows those items. What am I missing? My ItemsAdapter is a really simple adapter with nothing fancy inside.</p>