From 6ca02eb371a18fd39ccd856d9c88f1728fb4ec90 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 29 Jul 2020 17:10:46 +0530 Subject: Upgrade to Kotlin 1.4 (#978) * build: uprev to Kotlin 1.4 Signed-off-by: Harsh Shandilya * Remove explicit type argument Not required anymore with Kotlin 1.4 Signed-off-by: Harsh Shandilya * build: enable Kotlin 1.4 language features Signed-off-by: Harsh Shandilya * all: add trailing commas where reasonable Signed-off-by: Harsh Shandilya Co-authored-by: Fabian Henneke --- .../main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/crypto') diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt index 12d24758..a05da554 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt @@ -11,7 +11,6 @@ import android.text.InputType import android.view.Menu import android.view.MenuItem import android.view.View -import androidx.activity.result.ActivityResultLauncher import androidx.activity.result.IntentSenderRequest import androidx.activity.result.contract.ActivityResultContracts.StartActivityForResult import androidx.activity.result.contract.ActivityResultContracts.StartIntentSenderForResult @@ -59,7 +58,7 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB private var oldCategory: String? = null private var copy: Boolean = false - private val userInteractionRequiredResult: ActivityResultLauncher = registerForActivityResult(StartIntentSenderForResult()) { result -> + private val userInteractionRequiredResult = registerForActivityResult(StartIntentSenderForResult()) { result -> if (result.data == null) { setResult(RESULT_CANCELED, null) finish() -- cgit v1.2.3