title: Detect soft navigation bar availability in onePlusOne device progmatically?
body: <p>I need to check if a device has the soft navigation bar, and I followed the suggestions <a href="https://stackoverflow.com/questions/28983621/detect-soft-navigation-bar-availability-in-android-device-progmatically">here</a>.</p>
  
  <p>It works great, except on onePlus devices, for some reason, this code:</p>
  
  <pre><code>int id = resources.getIdentifier("config_showNavigationBar", "bool", android");
      return id &gt; 0 &amp;&amp; resources.getBoolean(id);
  </code></pre>
  
  <p>returns false, although the soft navigation bar is displayed.</p>
  
  <p>Any idea how can I get the correct result?</p>
  
  <p>I prefer not to calculate the real width and available width, it seems like expensive operation. </p>
  
  <p>Thanks.</p>