diff options
author | pacien | 2020-09-08 20:50:25 +0200 |
---|---|---|
committer | pacien | 2020-09-08 20:52:34 +0200 |
commit | d53138b1ffa823be0ead7b303ce4aec2ddde5953 (patch) | |
tree | 717e96fb46c588e392d811874f6fbe4ac413b9bd | |
parent | b06679f628eeb5b6e7f917ee79024e4808ca8303 (diff) | |
download | tincapp-d53138b1ffa823be0ead7b303ce4aec2ddde5953.tar.gz |
activities/start: add missing callback super call
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/start/StartActivity.kt | 10 |
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) { |