Show category/folder text for autofill entries

Previously, the right-hand side of the autofill extension UI was empty;
the category/folder text for a password entry wasn't showing.

This adjusts the storyboard so the detail is being shown and updates the
underlying Swift code to support the fix.
This commit is contained in:
David Beitey 2019-02-27 22:52:48 +10:00 committed by Mingshen Sun
parent f98d56753b
commit d67c6b13cb
2 changed files with 21 additions and 5 deletions

View file

@ -126,7 +126,7 @@ class CredentialProviderViewController: ASCredentialProviderViewController, UITa
}
}
// define cell contents, and set long press action
// define cell contents
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "passwordTableViewCell", for: indexPath)
let entry = getPasswordEntry(by: indexPath)
@ -137,7 +137,7 @@ class CredentialProviderViewController: ASCredentialProviderViewController, UITa
}
cell.accessoryType = .none
cell.detailTextLabel?.font = UIFont.preferredFont(forTextStyle: .footnote)
cell.detailTextLabel?.text = entry.categoryText
cell.detailTextLabel?.text = entry.passwordEntity?.getCategoryText()
return cell
}