diff --git a/app/src/main/java/fr/mobdev/peertubelive/activity/CreateLiveActivity.kt b/app/src/main/java/fr/mobdev/peertubelive/activity/CreateLiveActivity.kt index 9bfd885..22fac46 100644 --- a/app/src/main/java/fr/mobdev/peertubelive/activity/CreateLiveActivity.kt +++ b/app/src/main/java/fr/mobdev/peertubelive/activity/CreateLiveActivity.kt @@ -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() } } \ No newline at end of file