Skip to content

Use shared EllipsisAnimator in LibraryActivity; add fixed-width mode - #300

Merged
luisguzman-adfa merged 2 commits into
mainfrom
feat/ADFA-4947-ellipsis-dedup
Jul 31, 2026
Merged

Use shared EllipsisAnimator in LibraryActivity; add fixed-width mode#300
luisguzman-adfa merged 2 commits into
mainfrom
feat/ADFA-4947-ellipsis-dedup

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Rides the app UX/polish umbrella ADFA-4947 (references it; not a child).

Replaces the two inline dot-cycling animations in LibraryActivity (startBootEllipsis / startReadingEllipsis, plus stopBootEllipsis and the ellipsisHandler / ellipsisRunnable / bootBaseText fields) with the shared org.iiab.controller.util.EllipsisAnimator (ADFA-4842), which SetupProgressActivity already uses.

EllipsisAnimator gains a fixed-width mode (constructor flag): space-padded, constant-width, monospaced suffix so a centered line doesn't shift as the dots grow. Default stays variable-width plain text — one helper covers both cases.

Behavior note: the extract-detail line no longer inserts a space before the dots (unified with the boot line); 450 ms cadence unchanged.

Verify on device: the boot gate ("Starting your library…") and the extract "reading…" line animate and stay centered/stable across the boot → install → reading transition.

AppDevForAll added 2 commits July 30, 2026 17:44
Replace the two inline dot-cycling animations in LibraryActivity
(startBootEllipsis / startReadingEllipsis + the stop/handler/runnable
fields) with the shared org.iiab.controller.util.EllipsisAnimator
(ADFA-4842), which SetupProgressActivity already uses.

Expand EllipsisAnimator with a fixed-width mode (space-padded,
constant-width, monospaced suffix) so a centered line does not shift
as the dots grow. Default stays variable-width plain text.

Behavior note: the boot and extract-detail lines now render dots via
the same helper; the extract line no longer inserts a space before the
dots (unified with the boot line). No timing change (450 ms cadence).
Add onDestroy to stop bootEllipsis/readingEllipsis so the self-reposting
Handler Runnable can't outlive the Activity and leak it via the TextViews.
Mirrors SetupProgressActivity, which already stops its animator on destroy.
@luisguzman-adfa
luisguzman-adfa merged commit e026e60 into main Jul 31, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-4947-ellipsis-dedup branch July 31, 2026 02:25
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