1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00

Show global file count and size

This commit is contained in:
Unrud 2017-07-18 17:41:59 +02:00
parent 45fb92c248
commit 596bc1c49d

View file

@ -69,11 +69,11 @@ public class FoldersAdapter extends ArrayAdapter<Folder> {
binding.state.setText(getLocalizedState(getContext(), model.state, percentage));
binding.items.setVisibility(VISIBLE);
binding.items.setText(getContext()
.getString(R.string.files, model.inSyncFiles, model.localFiles));
.getString(R.string.files, model.inSyncFiles, model.globalFiles));
binding.size.setVisibility(VISIBLE);
binding.size.setText(getContext().getString(R.string.folder_size_format,
Util.readableFileSize(getContext(), model.inSyncBytes),
Util.readableFileSize(getContext(), model.localBytes)));
Util.readableFileSize(getContext(), model.globalBytes)));
setTextOrHide(binding.invalid, model.invalid);
} else {
binding.items.setVisibility(GONE);