From 232ffdd7d4550fbc04eb9017f1dd44d39617c40c Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 14 Jul 2016 20:49:19 +0200 Subject: [PATCH] use "0 B" instead of 0 for empty files --- .../simplemobiletools/filemanager/adapters/ItemsAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/simplemobiletools/filemanager/adapters/ItemsAdapter.java b/app/src/main/java/com/simplemobiletools/filemanager/adapters/ItemsAdapter.java index cfd30408..337d97a5 100644 --- a/app/src/main/java/com/simplemobiletools/filemanager/adapters/ItemsAdapter.java +++ b/app/src/main/java/com/simplemobiletools/filemanager/adapters/ItemsAdapter.java @@ -69,7 +69,7 @@ public class ItemsAdapter extends BaseAdapter { private String getFormattedSize(FileDirItem item) { final long size = item.getSize(); if (size <= 0) - return "0"; + return "0 B"; final String[] units = {"B", "kB", "MB", "GB", "TB"}; final int digitGroups = (int) (Math.log10(size) / Math.log10(1024)); return new DecimalFormat("#,##0.#").format(size / Math.pow(1024, digitGroups)) + " " + units[digitGroups];