mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
fix bug #742
This commit is contained in:
parent
ae6b686775
commit
580c1f008e
1 changed files with 11 additions and 6 deletions
|
@ -420,14 +420,19 @@ public class OCFileListFragment extends ExtendedListFragment {
|
|||
String output = "";
|
||||
|
||||
if (folders == 1) {
|
||||
output = folders.toString() + " " + getResources().getString(R.string.file_list_folder) + ", ";
|
||||
output = folders.toString() + " " + getResources().getString(R.string.file_list_folder);
|
||||
} else if (folders > 1) {
|
||||
output = folders.toString() + " " + getResources().getString(R.string.file_list_folders) + ", ";
|
||||
output = folders.toString() + " " + getResources().getString(R.string.file_list_folders);
|
||||
}
|
||||
if (files == 1) {
|
||||
output = output + files.toString() + " " + getResources().getString(R.string.file_list_file);
|
||||
} else {
|
||||
output = output + files.toString() + " " + getResources().getString(R.string.file_list_files);
|
||||
if (folders > 0 && files > 0){
|
||||
output = output + ", ";
|
||||
}
|
||||
if (files > 0){
|
||||
if (files == 1) {
|
||||
output = output + files.toString() + " " + getResources().getString(R.string.file_list_file);
|
||||
} else {
|
||||
output = output + files.toString() + " " + getResources().getString(R.string.file_list_files);
|
||||
}
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue