Feature: Add 'Clear All Downloads' button - Adds Clear All menu item …#2457
Open
PatilParas05 wants to merge 1 commit intoJunkFood02:mainfrom
Open
Feature: Add 'Clear All Downloads' button - Adds Clear All menu item …#2457PatilParas05 wants to merge 1 commit intoJunkFood02:mainfrom
PatilParas05 wants to merge 1 commit intoJunkFood02:mainfrom
Conversation
…in dropdown - Shows confirmation dialog with item count - Deletes all downloads and files - Only shows button when list not empty - Uses existing deleteDownloadHistory function
|
PatilParas05:feature/clear-all-downloads |
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.
Description
Added a "Clear All Downloads" feature that allows users to quickly delete all downloaded videos and audio files at once.
Problem
Users had to manually select and delete items one by one. There was no quick way to clear the entire download history.
Solution
Added a "Clear All Downloads" menu item in the dropdown menu of the video list. When clicked, it shows a confirmation dialog displaying the total number of items to be deleted, preventing accidental deletion.
Changes Made
VideoListPage.kt:
showClearAllDialogto manage dialog visibilitydeleteDownloadHistorywith all itemsVideoListViewModel.kt:
clearAllDownloads()functionFeatures
✅ Confirmation dialog prevents accidental deletion
✅ Shows count of items to be deleted
✅ Clean Material Design UI
✅ Uses existing
deleteDownloadHistoryfunction for consistency✅ Only shows button when list is not empty
Type of Change