From b9e6385751f0a0b36b5d47e51f95666490000ef4 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Sun, 19 Jul 2020 18:39:41 +0200 Subject: Fix Autofill result contract bug (#941) --- .../java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillDecryptActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillDecryptActivity.kt b/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillDecryptActivity.kt index 3656bc7e..2ac32c27 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillDecryptActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillDecryptActivity.kt @@ -199,7 +199,7 @@ class AutofillDecryptActivity : AppCompatActivity(), CoroutineScope { registerForActivityResult(StartIntentSenderForResult()) { result -> if (continueAfterUserInteraction != null) { val data = result.data - if (resultCode == RESULT_OK && data != null) { + if (result.resultCode == RESULT_OK && data != null) { continueAfterUserInteraction?.resume(data) } else { continueAfterUserInteraction?.resumeWithException(Exception("OpenPgpApi ACTION_DECRYPT_VERIFY failed to continue after user interaction")) -- cgit v1.2.3