Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87fcf9e9 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Show "0" instead of "0 B" in storage settings." into nyc-dev

parents f315e2e6 89d56596
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,9 @@ public class StorageItemPreference extends Preference {
    }
    }


    public void setStorageSize(long size, long total) {
    public void setStorageSize(long size, long total) {
        setSummary(Formatter.formatFileSize(getContext(), size));
        setSummary(size == 0
                ? String.valueOf(0)
                : Formatter.formatFileSize(getContext(), size));
        if (total == 0) {
        if (total == 0) {
            progress = 0;
            progress = 0;
        } else {
        } else {