Fix Autofill result contract bug (#941)

This commit is contained in:
Fabian Henneke
2020-07-19 18:39:41 +02:00
committed by GitHub
parent c7ccc2f4f1
commit b9e6385751

View File

@@ -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"))