This commit is contained in:
tobiasKaminsky 2014-11-21 18:08:44 +01:00
parent ae6b686775
commit 580c1f008e

View file

@ -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;
}