Fix code analytics

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-07-04 14:16:28 +02:00
parent 62931a7d06
commit 3027b4fd35
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -124,17 +124,26 @@ class RemoveFilesDialogFragment : ConfirmationDialogFragment(), ConfirmationDial
if (files.size == SINGLE_SELECTION) { if (files.size == SINGLE_SELECTION) {
val file = files[0] val file = files[0]
messageStringId = messageStringId =
if (file.isFolder) R.string.confirmation_remove_folder_alert else R.string.confirmation_remove_file_alert if (file.isFolder) {
R.string.confirmation_remove_folder_alert
} else {
R.string.confirmation_remove_file_alert
}
} else { } else {
messageStringId = messageStringId =
if (containsFolder) R.string.confirmation_remove_folders_alert else R.string.confirmation_remove_files_alert if (containsFolder) {
R.string.confirmation_remove_folders_alert
} else {
R.string.confirmation_remove_files_alert
}
} }
val bundle = Bundle().apply { val bundle = Bundle().apply {
putInt(ARG_MESSAGE_RESOURCE_ID, messageStringId) putInt(ARG_MESSAGE_RESOURCE_ID, messageStringId)
if (files.size == SINGLE_SELECTION) { if (files.size == SINGLE_SELECTION) {
putStringArray( putStringArray(
ARG_MESSAGE_ARGUMENTS, arrayOf( ARG_MESSAGE_ARGUMENTS,
arrayOf(
files[0].fileName files[0].fileName
) )
) )