mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 23:05:33 +00:00
@@ -120,7 +120,9 @@ class AutofillSaveActivity : Activity() {
|
|||||||
AutofillMatcher.addMatchFor(this, it, File(createdPath))
|
AutofillMatcher.addMatchFor(this, it, File(createdPath))
|
||||||
}
|
}
|
||||||
val longName = data.getStringExtra("LONG_NAME")!!
|
val longName = data.getStringExtra("LONG_NAME")!!
|
||||||
val password = data.getStringExtra("PASSWORD")!!
|
val password = data.getStringExtra("PASSWORD")
|
||||||
|
val result = if (password != null) {
|
||||||
|
// Password was generated and should be filled into a form.
|
||||||
val username = data.getStringExtra("USERNAME")
|
val username = data.getStringExtra("USERNAME")
|
||||||
val clientState =
|
val clientState =
|
||||||
intent?.getBundleExtra(AutofillManager.EXTRA_CLIENT_STATE) ?: run {
|
intent?.getBundleExtra(AutofillManager.EXTRA_CLIENT_STATE) ?: run {
|
||||||
@@ -135,9 +137,13 @@ class AutofillSaveActivity : Activity() {
|
|||||||
clientState,
|
clientState,
|
||||||
AutofillAction.Generate
|
AutofillAction.Generate
|
||||||
)
|
)
|
||||||
val result = Intent().apply {
|
Intent().apply {
|
||||||
putExtra(AutofillManager.EXTRA_AUTHENTICATION_RESULT, fillInDataset)
|
putExtra(AutofillManager.EXTRA_AUTHENTICATION_RESULT, fillInDataset)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Password was extracted from a form, there is nothing to fill.
|
||||||
|
Intent()
|
||||||
|
}
|
||||||
// PgpActivity delegates committing the added file to PasswordStore. Since PasswordStore
|
// PgpActivity delegates committing the added file to PasswordStore. Since PasswordStore
|
||||||
// is not involved in an AutofillScenario, we have to commit the file ourselves.
|
// is not involved in an AutofillScenario, we have to commit the file ourselves.
|
||||||
PasswordStore.commitChange(
|
PasswordStore.commitChange(
|
||||||
|
Reference in New Issue
Block a user