Finish activity when Autofill Generate is cancelled (#1179)

(cherry picked from commit 03959cca4d)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Fabian Henneke 2020-10-31 12:01:18 +01:00 committed by Harsh Shandilya
parent 5cfa1f165f
commit 7aee68f1fa
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
### Fixed
- Cancelling the Autofill "Generate password" action now correctly returns you to the original app.
## [1.13.1] - 2020-10-23
### Fixed

View file

@ -140,8 +140,10 @@ class AutofillSaveActivity : AppCompatActivity() {
Intent()
}
setResult(RESULT_OK, resultIntent)
finish()
} else {
setResult(RESULT_CANCELED)
}
finish()
}.launch(saveIntent)
}
}