diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-08-22 00:55:10 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-08-22 00:55:10 +0000 |
| commit | b3aa6845a7eaaade61eab71291a25b5ea2b79bd5 (patch) | |
| tree | 1319f62658b4d1fb9b4955d4bb0da7e04558bf71 /app/src/main/java/org/terst/feedreader/stash/StashClient.kt | |
| parent | fccbaf8b647cf9350a00e76bab02c129dbad7dca (diff) | |
Extract shared saveArticleToStash helper (dedupe 5 copies)
The build-a-StashClient-and-branch-on-the-result dance was
independently copy-pasted at 5 call sites (ShareReceiverActivity,
ReaderScreen x2, LinkReaderScreen x2). StashSaveOutcome carries the
exact snackbar text plus the artifact id, as a sealed class so a
caller that cares about the Saved/AlreadySaved distinction can still
pattern-match instead of parsing the message back apart.
Not yet adopted at any call site -- follow-up commits switch each one
over.
Diffstat (limited to 'app/src/main/java/org/terst/feedreader/stash/StashClient.kt')
0 files changed, 0 insertions, 0 deletions
