Fixed in https://github.com/badbundle/vault-app/pull/632 (merged as 30242338).
The setting: a new Tap a Code To setting, with Copy (the default, and today's behaviour) or Show Details. It sits in a new Codes section in Settings, with a teal icon. The sections now run Security, Screen Recording, Codes, New Items, Clipboard, Danger Zone.
Copying stays one step away:
- Every code now has a touch-and-hold context menu with Copy Code and Show Details, whichever the setting is. Both are also VoiceOver actions.
- The code is worked out when Copy Code is chosen, so a code that rolled over while the menu was open is copied as it is now.
Locked items:
- Copying still needs authentication, from a tap or from the menu.
- With Show Details, tapping opens the detail page, which has its own lock screen.
Unchanged:
- Notes and other items with nothing to copy.
- Edit mode: tap to edit, no menu, and drag to reorder still works.
- AutoFill.
Implementation: VaultItemTapHandler now makes the tap decision that used to sit in VaultListView, so it's unit tested. VaultItemMenuDecoratorViewGenerator adds the menu.
Tests:
VaultItemTapHandlerTests(16) cover both settings, in and out of edit mode, locked items and authentication failures.- There are settings persistence tests.
- The Settings snapshots were re-recorded for the new section.