title: .commitNow() vs .commit(), which is more adequate?
body: <p>I´m trying to clean up my code and I have a more basic question.</p>
  <p>In my Activity, I'm just adding a Fragment -&gt;</p>
  <pre><code>class OrderActivity : AppCompatActivity(), HasAndroidInjector {
      private lateinit var binding: ActivityOrderBinding
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
  
          binding = DataBindingUtil.setContentView(this, R.layout.activity_order)
          if (savedInstanceState == null) {
              supportFragmentManager.beginTransaction().add(R.id.container, OrderFragment())
                  .commitNow()
          }
      }
  }
  </code></pre>
  <p>I´m using commitNow() only if the Activity is &quot;new&quot; ( asking for the bundle state ), as I read in Android´s Documentation, commitNow make the commit syncronously  -- &gt;</p>
  <blockquote>
  <p><em>Commits this transaction synchronously. Any added fragments will be initialized and brought completely to the lifecycle state of their host and any removed fragments will be torn down accordingly before this call returns. Committing a transaction in this way allows fragments to be added as dedicated, encapsulated components that monitor the lifecycle state of their host while providing firmer ordering guarantees around when those fragments are fully initialized and ready. Fragments that manage views will have those views created and attached.</em></p>
  </blockquote>
  <p>Now, I just want to know if it is safe to replace commitNow for &quot;.commit()&quot;.</p>
  <p>I understand that commit can throw an exception if the Activity State was already saved, but, if I wrote it like this .. &gt;</p>
  <pre><code>class OrderActivity : AppCompatActivity(), HasAndroidInjector {
      private lateinit var binding: ActivityOrderBinding
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
  
          binding = DataBindingUtil.setContentView(this, R.layout.activity_order)
          if (savedInstanceState == null) {
              supportFragmentManager.beginTransaction().add(R.id.container, OrderFragment())
                  .commit()
          }
      }
  }
  </code></pre>
  <p>Is it safe?</p>