Loading src/com/android/settings/deviceinfo/StorageItemPreference.java +5 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,11 @@ public class StorageItemPreference extends Preference { public void setStorageSize(long size, long total) { setSummary(Formatter.formatFileSize(getContext(), size)); if (total == 0) { progress = 0; } else { progress = (int)(size * PROGRESS_MAX / total); } updateProgressBar(); } Loading Loading
src/com/android/settings/deviceinfo/StorageItemPreference.java +5 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,11 @@ public class StorageItemPreference extends Preference { public void setStorageSize(long size, long total) { setSummary(Formatter.formatFileSize(getContext(), size)); if (total == 0) { progress = 0; } else { progress = (int)(size * PROGRESS_MAX / total); } updateProgressBar(); } Loading