bb109f184adb
fix: always show password-history toggle on entry detail — discoverability (v2.10.6)
- time
- 2026-08-02 20:08 UTC · 2 months ago
- machine
- koh2
- parent
- 7f1a2d6e3a0b
↓ peach-android-bb109f18.tar.gzatlas at this save
files changed2 files
VERSION+1 −1app/src/main/java/com/peachpasswords/ui/vault/EntryDetailScreen.kt+16 −14app/src/main/java/com/peachpasswords/ui/vault/EntryDetailScreen.kt+16 −14
@@ -329,21 +329,23 @@329329 onGenerate = { generatorOpen = true },330330 )331331 }332+ // Always show the history affordance (browser parity) — visible333+ // even before any password change, expanding to an empty-state334+ // explainer so the feature is discoverable rather than hidden335+ // until history already exists.332336 val history = e.passwordHistory.orEmpty()333- if (history.isNotEmpty()) {334- PasswordHistoryToggle(335- count = history.size,336- expanded = historyExpanded,337- onToggle = { historyExpanded = !historyExpanded },338- )339- AnimatedVisibility(visible = historyExpanded) {340- Column(Modifier.padding(top = 8.dp, bottom = 6.dp)) {341- PasswordHistoryList(342- history = history,343- onRestore = { oldPw -> vm.restorePassword(e.id, oldPw) },344- onCopy = { oldPw -> vm.copy("password", oldPw) },345- )346- }337+ PasswordHistoryToggle(338+ count = history.size,339+ expanded = historyExpanded,340+ onToggle = { historyExpanded = !historyExpanded },341+ )342+ AnimatedVisibility(visible = historyExpanded) {343+ Column(Modifier.padding(top = 8.dp, bottom = 6.dp)) {344+ PasswordHistoryList(345+ history = history,346+ onRestore = { oldPw -> vm.restorePassword(e.id, oldPw) },347+ onCopy = { oldPw -> vm.copy("password", oldPw) },348+ )347349 }348350 }349351 if (e.hasTOTP()) {