Finish activity when Autofill Generate is cancelled (#1179)

This commit is contained in:
Fabian Henneke 2020-10-31 12:01:18 +01:00 committed by GitHub
parent 07b8505fe0
commit 03959cca4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.
### Changed
- Accessibility autofill has been removed completely due to being buggy, insecure and lacking in features. Upgrade to Android 8 or preferably later to gain access to our advanced Autofill implementation.

View file

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