From 7aee68f1fa60c4565361883511cd4eb490bc4929 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Sat, 31 Oct 2020 12:01:18 +0100 Subject: Finish activity when Autofill Generate is cancelled (#1179) (cherry picked from commit 03959cca4d401487b6422cd0d650e7486af0b129) Signed-off-by: Harsh Shandilya --- .../java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillSaveActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/com/zeapo') 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) } } -- cgit v1.2.3