diff --git a/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java b/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java index 19b4ec0d..e1425750 100644 --- a/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java +++ b/src/main/java/com/nutomic/syncthingandroid/views/FoldersAdapter.java @@ -63,8 +63,8 @@ public class FoldersAdapter extends ArrayAdapter { }); if (model != null) { - int percentage = (model.localBytes != 0) - ? Math.round(100 * model.inSyncBytes / model.localBytes) + int percentage = (model.globalBytes != 0) + ? Math.round(100 * model.inSyncBytes / model.globalBytes) : 100; binding.state.setText(getLocalizedState(getContext(), model.state, percentage)); binding.items.setVisibility(VISIBLE);