title: Layout changes after turning the emulator, but not the device
body: <p>I need to show 2 columns in <code>RecyclerView</code> when the orientation is portrait and 4 columns when orientation is <code>land</code>. It works correct on the emulator. </p>
  
  <p><a href="https://i.stack.imgur.com/rgYBo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rgYBo.png" alt="enter image description here"></a></p>
  
  <p>It's <code>RecyclerView</code> in portrait orientation. </p>
  
  <p>Turning the emulator:</p>
  
  <p><a href="https://i.stack.imgur.com/eDZ03.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eDZ03.png" alt="enter image description here"></a></p>
  
  <p>As you can see, there is refresh button. And after clicking on it we see 4 columns on screen:</p>
  
  <p><a href="https://i.stack.imgur.com/9VMef.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9VMef.png" alt="enter image description here"></a></p>
  
  <p>But when I run the project on my mobile phone, there is no refresh button and I see 2 columns in land orientation. </p>
  
  <p>Here's a part of my code:</p>
  
  <pre><code>@Override
  public void onConfigurationChanged(Configuration newConfig){
      super.onConfigurationChanged(newConfig);
      if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE){
          previewImages.setLayoutManager(new GridLayoutManager(this, 4));
      }
      else {
          previewImages.setLayoutManager(new GridLayoutManager(this, 2));
      }
  }
  </code></pre>
  
  <p>And I added this line to manifest:</p>
  
  <pre><code>android:configChanges="orientation"
  </code></pre>
  
  <p>So, what's the problem and how can I solve it?</p>