Merge \\\"Show \\\"0\\\" instead of \\\"0 B\\\" in storage settings.\\\" into nyc-dev am: 87fcf9e95f
am: 7df9a28fdb
am: 92e908b68e
Change-Id: I6a5fd83689308b3dd3e174f0e046274cf478283d
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user