summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-10-31 12:01:18 +0100
committerGitHub <noreply@github.com>2020-10-31 12:01:18 +0100
commit03959cca4d401487b6422cd0d650e7486af0b129 (patch)
treed0ff5e75af5d4d021fa54efa05ef47e4c785c239 /app/src
parent07b8505fe08c4cb33a8f3f72617cc932405cdb81 (diff)
Finish activity when Autofill Generate is cancelled (#1179)
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillSaveActivity.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillSaveActivity.kt b/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillSaveActivity.kt
index f4c296ee..bc012d3d 100644
--- a/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillSaveActivity.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillSaveActivity.kt
@@ -140,8 +140,10 @@ class AutofillSaveActivity : AppCompatActivity() {
Intent()
}
setResult(RESULT_OK, resultIntent)
- finish()
+ } else {
+ setResult(RESULT_CANCELED)
}
+ finish()
}.launch(saveIntent)
}
}