title: LinearLayoutManager setOrientation after phone rotation not working
body: <p>I'm trying out the new <code>RecyclerView</code> in combination with the standard implementation of the <code>LayoutManager</code> the <code>LinearLayoutManager</code>. My goal is to let the <code>LayoutManager</code> draw my items horizontally when the device is in portrait orientation and draw them vertically when the device is in landscape. For this I use the following code in my activity's <code>onCreate</code>:</p>
  
  <pre><code>RecyclerView recyclerView = (RecyclerView) findViewById(R.id.nextColors);
  recyclerView.setAdapter(myAdapter = new MyAdapter(getBaseContext(), myData, myLayout);
  LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
  if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
     linearLayoutManager.setOrientation(LinearLayout.HORIZONTAL);
  } else {
      linearLayoutManager.setOrientation(LinearLayout.VERTICAL);
  }
  recyclerView.setLayoutManager(linearLayoutManager);
  recyclerView.setItemAnimator(new DefaultItemAnimator());
  </code></pre>
  
  <p>This works fine if I start the activity while the device is in landscape or portrait mode. But when I change orientation in this activity the items are always drawn horizontally or vertically, depending on the device's orientation when the activity was first started. This doesn't make sense to me since after device rotation the activity is recreated and the <code>LayoutManager</code> should take the correct orientation.</p>
  
  <p>Does anyone have an idea how to make <code>setOrientation</code> work with device orientation changes?</p>