-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQUEST] Show same remove dialog for every kind of file or folder #4404
base: master
Are you sure you want to change the base?
[FEATURE REQUEST] Show same remove dialog for every kind of file or folder #4404
Conversation
6bef5ff
to
98f3ddf
Compare
5f9c0e0
to
0b29948
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes here
filesToRemove = checkedFiles | ||
fileOperationsViewModel.showRemoveDialog(filesToRemove) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be used checkedFiles
on showRemoveDialog
instead of having a variable called filesToRemove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot delete this variable because it is used in the flow. We would have to change the name there too. I think it's better to leave it like this.
val file = targetFiles.first() | ||
messageArguments = file.fileName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can delete file
variable and use files.first().fileName
on the value of messageArguments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case I would leave it with my approach. If you notice, the file
variable is later used to know if the file is a folder, therefore we cannot do without it.
Here the code:
val file = targetFiles.first()
messageArguments = file.fileName
if (file.isFolder) {
R.string.confirmation_remove_folder_alert
} else {
R.string.confirmation_remove_file_alert
}
@@ -760,6 +760,8 @@ | |||
<string name="release_notes_4_3_0_subtitle_accessibility_improvements">Some improvements to make the application more accessible</string> | |||
<string name="release_notes_4_3_0_title_show_app_provider_icon_from_endpoint">New icons in "Open in (web)" option on the operations menu</string> | |||
<string name="release_notes_4_3_0_subtitle_show_app_provider_icon_from_endpoint">More appropriate icons have been added to the "Open in (web)" option on the operations menu</string> | |||
<string name="release_notes_4_3_0_title_show_same_remove_dialog_for_every_file_folder">Improved thumbnails in the delete files dialog</string> | |||
<string name="release_notes_4_3_0_subtitle_show_same_remove_dialog_for_every_file_folder">Thumbnails have been added in remove dialog for all files and not only for images</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<string name="release_notes_4_3_0_subtitle_show_same_remove_dialog_for_every_file_folder">Thumbnails have been added in remove dialog for all files and not only for images</string> | |
<string name="release_notes_4_3_0_subtitle_show_same_remove_dialog_for_every_file_folder">Thumbnails have been added in remove dialog for all files and not only for items which had thumbnail</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
changelog/unreleased/4404
Outdated
The logic of the custom remove files dialog has been incorporated into the RemoveFilesDialogFragment, unifying both developments. | ||
Thumbnails have been added for all files and not only for images. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic of the custom remove files dialog has been incorporated into the RemoveFilesDialogFragment, unifying both developments. | |
Thumbnails have been added for all files and not only for images. | |
The logic of the custom remove files dialog has been incorporated into the RemoveFilesDialogFragment, unifying both developments. | |
Thumbnails have been added for all files and not only for items which had thumbnail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
1a7a7b2
to
ab533f6
Compare
…ity to display thumbnails(img, mp4, folders...)
…se notes relate to this development
72c28ff
to
bf7df0e
Compare
Related Issues
App: #4377
ReleaseNotesViewModel.kt
creating a newReleaseNote()
with String resources (if required)QA