Redesign example app with task-based download manager UI#25
Merged
Conversation
Replace static sample file sections with a dynamic download task list using Material 3 Scaffold, LazyColumn, and FAB. Features: add download dialog with URL auto-fill, per-task status badges, live progress tracking, state-specific action buttons (pause/resume/cancel/retry/remove), error banners, and task restoration on launch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Pause: tonal icon button (secondary emphasis) - Resume: filled icon button (primary, most prominent action) - Cancel: icon button with error color - Retry: tonal icon button - Remove/Delete: icon button with error color - FAB: Add icon instead of "+" text - Add material-icons-extended dependency for Pause, PlayArrow, Close, Delete, Refresh, and Add icons Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Tap task card to toggle pause/resume (downloading taps to pause, paused taps to resume) - Replace text action buttons with icon buttons: - Cancel (Close icon, error color) for active/paused tasks - Remove (Delete icon, error color) for paused/completed/failed tasks - Retry (Refresh icon, tonal) for failed/canceled tasks - Add (Add icon) for FAB - Keep cancel and remove as separate operations Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
After canceling, remove the DownloadTask from activeTasks so the UI falls back to the TaskRecord state (CANCELED) instead of showing the stale live state. This was especially visible when canceling a paused task, since the coordinator already removed the ActiveDownload during pause and couldn't update the stateFlow on cancel. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kdown.restoreTasks()Test plan
./gradlew :examples:app:compileKotlinJvm :examples:app:compileKotlinWasmJs🤖 Generated with Claude Code