Skip to content

manager: cleanup Downloader and fix warnings#3229

Merged
aviraxp merged 1 commit into
tiann:mainfrom
u9521:download-clean
Feb 26, 2026
Merged

manager: cleanup Downloader and fix warnings#3229
aviraxp merged 1 commit into
tiann:mainfrom
u9521:download-clean

Conversation

@u9521

@u9521 u9521 commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

commit (b3d5820) refactored the download logic to use OkHttp downloader instead of the system's DownloadManager. However, the DownloadListener was designed to listen for DownloadManager's broadcasts, was inadvertently left behind.

- Remove unused `DownloadListener` Composable from `Downloader.kt` and its usages in `ModuleRepo.kt` and `Module.kt`.
- Use `LocalResources.current` instead of `context.getString` in `SendLogDialog.kt`.
- Rename `it` parameter to `activityResult` in `Module.kt` for better clarity.
- Remove unused `onInstallModule` parameter and callback in `ModuleScreen`.

Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
@aviraxp aviraxp merged commit 177d51a into tiann:main Feb 26, 2026
16 checks passed
@u9521 u9521 deleted the download-clean branch February 26, 2026 07:55
u9521 added a commit to u9521/KernelSU that referenced this pull request Feb 26, 2026
commit (b3d5820) refactored the download logic to use OkHttp downloader
instead of the system's DownloadManager. However, the DownloadListener
was designed to listen for DownloadManager's broadcasts, was
inadvertently left behind.

Signed-off-by: u9521 <63995396+u9521@users.noreply.github.com>
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.

2 participants