I try to get the result in a fragment. Code in fragment
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    super.onActivityResult(requestCode, resultCode, data)
    if (resultCode != Activity.RESULT_OK) return
    val bundle = data?.extras
    when (requestCode) {
        LicenseActivationActivity.REQUEST_RESULT_COUNT_ENTERPRISE ->
     //
    }
}
This code is called. But also method onActivityResult in DrawerActivity
Do that onActivityResult is called only in the fragment?
UPDATE
This code in DrawerActivity
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    super.onActivityResult(requestCode, resultCode, data)
    if (resultCode == Activity.RESULT_OK) {
        WayBillsActivity.start(this)
        finish()
    }
}
For some reason, it is also satisfied, but only after onActivityResult in fragment.
 
     
     
     
     
     
    