Skip to content

feat(ADFA-4579): standardize Snackbars on reading-time duration#145

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4579-snackbar-duration-sweep
Jul 7, 2026
Merged

feat(ADFA-4579): standardize Snackbars on reading-time duration#145
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-4579-snackbar-duration-sweep

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Add util/Snackbars.make(view, msg | resId), which applies SnackbarDuration.millisForText, and convert all 63 fixed Snackbar.make(..., LENGTH_SHORT/LONG) call sites across 11 files to it, so long messages are no longer truncated. Short confirmations clamp to MIN_MS (3s) per the single-rule decision. Pre-existing explicit-duration calls (BackupController millisForText, the 6000ms server-not-installed snackbar) are left as-is.

Follow-ups (tracked in ADFA-4579): a Toast equivalent, and a custom lint rule flagging Snackbar.LENGTH_* for build-time enforcement.

@luisguzman-adfa luisguzman-adfa marked this pull request as ready for review July 7, 2026 07:39
Add util/Snackbars.make(view, msg | resId), which applies
SnackbarDuration.millisForText, and convert all 63 fixed
Snackbar.make(..., LENGTH_SHORT/LONG) call sites across 11 files to it, so long
messages are no longer truncated. Short confirmations clamp to MIN_MS (3s) per
the single-rule decision. Pre-existing explicit-duration calls (BackupController
millisForText, the 6000ms server-not-installed snackbar) are left as-is.

Follow-ups (tracked in ADFA-4579): a Toast equivalent, and a custom lint rule
flagging Snackbar.LENGTH_* for build-time enforcement.
@luisguzman-adfa luisguzman-adfa force-pushed the feat/ADFA-4579-snackbar-duration-sweep branch from 4e71ff3 to 2bf716f Compare July 7, 2026 07:42
@luisguzman-adfa luisguzman-adfa merged commit ab72ea0 into main Jul 7, 2026
1 check passed
@luisguzman-adfa luisguzman-adfa deleted the feat/ADFA-4579-snackbar-duration-sweep branch July 7, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant