Fix error when pressed back during live creation window that display the end of the stream that never exist

This commit is contained in:
Anthony Chomienne 2021-07-07 17:32:14 +02:00
parent c3ad46de59
commit c5f5007945
1 changed files with 3 additions and 3 deletions

View File

@ -364,10 +364,10 @@ class CreateLiveActivity : AppCompatActivity() {
}
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
setResult(resultCode)
override fun onBackPressed() {
setResult(-1)
finish()
super.onBackPressed()
}
}