mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 06:35:48 +03:00
Fix code analytics
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
62931a7d06
commit
3027b4fd35
1 changed files with 12 additions and 3 deletions
|
@ -124,17 +124,26 @@ class RemoveFilesDialogFragment : ConfirmationDialogFragment(), ConfirmationDial
|
|||
if (files.size == SINGLE_SELECTION) {
|
||||
val file = files[0]
|
||||
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 {
|
||||
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 {
|
||||
putInt(ARG_MESSAGE_RESOURCE_ID, messageStringId)
|
||||
if (files.size == SINGLE_SELECTION) {
|
||||
putStringArray(
|
||||
ARG_MESSAGE_ARGUMENTS, arrayOf(
|
||||
ARG_MESSAGE_ARGUMENTS,
|
||||
arrayOf(
|
||||
files[0].fileName
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue