title: Wrong resource is used
body: <p>I have two layouts for different screen size:</p>
  
  <pre><code>layout
  layout-w580dp
  </code></pre>
  
  <p>Display metrics log for portrait and landscape orientation:</p>
  
  <pre><code>DisplayMetrics{density=1.3312501, width=800, height=1280, scaledDensity=1.5841876, xdpi=216.0, ydpi=216.0}
  DisplayMetrics{density=1.3312501, width=1280, height=800, scaledDensity=1.5841876, xdpi=216.0, ydpi=216.0}
  </code></pre>
  
  <p>Potrait orientation has <code>800/1.5841876=504dp</code>, so resource from <code>layout</code> folder sould be used.
  Landscape orientation has <code>1200/1.5841876=704dp</code>, so resource from <code>layout-w580dp</code> folder sould be used.<br>
  However, in both orientation resource is obtained from <code>layout-w580dp</code> folder.<br>
  What causes that issue?</p>