aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2020-09-08 20:50:25 +0200
committerpacien2020-09-08 20:52:34 +0200
commitd53138b1ffa823be0ead7b303ce4aec2ddde5953 (patch)
tree717e96fb46c588e392d811874f6fbe4ac413b9bd
parentb06679f628eeb5b6e7f917ee79024e4808ca8303 (diff)
downloadtincapp-d53138b1ffa823be0ead7b303ce4aec2ddde5953.tar.gz
activities/start: add missing callback super call
-rw-r--r--app/src/main/java/org/pacien/tincapp/activities/start/StartActivity.kt10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/activities/start/StartActivity.kt b/app/src/main/java/org/pacien/tincapp/activities/start/StartActivity.kt
index 909078f..144326d 100644
--- a/app/src/main/java/org/pacien/tincapp/activities/start/StartActivity.kt
+++ b/app/src/main/java/org/pacien/tincapp/activities/start/StartActivity.kt
@@ -86,9 +86,13 @@ class StartActivity : BaseActivity() {
86 super.onPause() 86 super.onPause()
87 } 87 }
88 88
89 override fun onActivityResult(request: Int, result: Int, data: Intent?): Unit = when (request) { 89 override fun onActivityResult(request: Int, result: Int, data: Intent?) {
90 permissionRequestCode -> continueConnectionStart(result) 90 when (request) {
91 else -> throw IllegalArgumentException("Result for unknown request received.") 91 permissionRequestCode -> continueConnectionStart(result)
92 else -> throw IllegalArgumentException("Result for unknown request received.")
93 }
94
95 super.onActivityResult(request, result, data)
92 } 96 }
93 97
94 private fun continueConnectionStart(result: Int): Unit = when (result) { 98 private fun continueConnectionStart(result: Int): Unit = when (result) {