diff --git a/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java b/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java index 41aee6a4..19b4ec0d 100644 --- a/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java +++ b/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java @@ -63,17 +63,17 @@ public class FoldersAdapter extends ArrayAdapter { }); if (model != null) { - int percentage = (model.globalBytes != 0) - ? Math.round(100 * model.inSyncBytes / model.globalBytes) + int percentage = (model.localBytes != 0) + ? Math.round(100 * model.inSyncBytes / model.localBytes) : 100; binding.state.setText(getLocalizedState(getContext(), model.state, percentage)); binding.items.setVisibility(VISIBLE); binding.items.setText(getContext() - .getString(R.string.files, model.inSyncFiles, model.globalFiles)); + .getString(R.string.files, model.inSyncFiles, model.localFiles)); binding.size.setVisibility(VISIBLE); binding.size.setText(getContext().getString(R.string.folder_size_format, Util.readableFileSize(getContext(), model.inSyncBytes), - Util.readableFileSize(getContext(), model.globalBytes))); + Util.readableFileSize(getContext(), model.localBytes))); setTextOrHide(binding.invalid, model.invalid); } else { binding.items.setVisibility(GONE);