title: Why does Bottom Sheet Dialog not expand on tablet?
body: <p>I have impelemented a BottomSheetDialog in my app but when I install it on a tablet and have the tablet laying down it does not expand fully on first click. It expands up to Collapsed state first and you have to drag it up to see everything. Why does it do this? Is it some setting you can change in your style?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:orientation="vertical"
      app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
      app:behavior_peekHeight="0dp"
      &gt;
     ...
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>val view = layoutInflater.inflate(R.layout.home_bottom_sheet_dialog, null)
  val bottomSheetDialog = BottomSheetDialog(activity!!)
  
  bottomSheetDialog.setContentView(view)
  bottomSheetDialog.show()
  </code></pre>
  
  <p>I use API 22 AndroidX with kotlin.</p>
  
  <p><a href="https://i.stack.imgur.com/ehsNT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ehsNT.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/6zWxR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6zWxR.png" alt="enter image description here"></a></p>