title: AppCompatDialogFragment views are null when starting AppCompatDialogFragment from Fragment
body: <p>When I try to access views (by synthetics or <code>findViewById()</code> ) I am getting null returned in my AppCompatDialogFragment.</p>
  
  <p>I try finding my views in the <code>onCreateDialog()</code> method. I've attached an image of this below so you can see both the call and my debugger results:</p>
  
  <p><a href="https://i.stack.imgur.com/7rmBD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7rmBD.png" alt="enter image description here"></a></p>
  
  <p>I start this AppCompatDialogFragment from my NutritionProgressFragment like so:</p>
  
  <pre><code>class NutritionProgressFragment : Fragment(), AddLogDialog.AddLogDialogListener {
  
      ...
  
      override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
          super.onViewCreated(view, savedInstanceState)
  
          add_log.setOnClickListener { openDialog() }
      }
  
      private fun openDialog() {
          val dialog = AddLogDialog(this)
          dialog.show(childFragmentManager, "example dialog")
      }
  ...
  }
  </code></pre>
  
  <p>Additionally, I have tried the following fragment managers, none of which allowed my views to be found:
  childFragmentManager, parentFragmentManager, supportFragmentManager</p>
  
  <p>Also oddly enough, I can sort of find my view inside the <code>view</code> object. It is under it's mChildren variable but has a different int ID value than my view. You can see in the 3rd watch variable of the photo I hardcode the internally stored <code>view</code> ID and I am able to find my EditText (although it's an AppCompatEditText instead of a normal EditText). Obviously though I can't just hardcode my view ID's based on what the system builds for me</p>
  
  <p>Anyone have any idea why? I have checked many SO posts but haven't found anything that is both similar to my problem and is actually solved. I'd love to know the answer to this rather than just finding something works and forgetting this. Thanks for any help!</p>