diff options
author | Fabian Henneke <FabianHenneke@users.noreply.github.com> | 2020-10-31 12:01:18 +0100 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-12-21 20:16:10 +0530 |
commit | 7aee68f1fa60c4565361883511cd4eb490bc4929 (patch) | |
tree | b8e2ca84dbeb5a2f71feebb3150ff30cf429f8a9 /app/src | |
parent | 5cfa1f165f1905cd6dbe4fa7bfca1593672a7322 (diff) |
Finish activity when Autofill Generate is cancelled (#1179)
(cherry picked from commit 03959cca4d401487b6422cd0d650e7486af0b129)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/autofill/oreo/ui/AutofillSaveActivity.kt | 4 |
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) } } |