aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-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) {