Always show at least 1% when some space used.
Don't let the progress value round down to 0, since that would be misleading. Test: builds Bug: 24017703 Change-Id: I6a0268361645da16af67e12bf7f6823d027dd72c
This commit is contained in:
@@ -166,7 +166,7 @@ public class PublicVolumeSettings extends SettingsPreferenceFragment {
|
||||
result.value, result.units));
|
||||
mSummary.setSummary(getString(R.string.storage_volume_used,
|
||||
Formatter.formatFileSize(context, totalBytes)));
|
||||
mSummary.setPercent((int) ((usedBytes * 100) / totalBytes));
|
||||
mSummary.setPercent(usedBytes, totalBytes);
|
||||
}
|
||||
|
||||
if (mVolume.getState() == VolumeInfo.STATE_UNMOUNTED) {
|
||||
|
Reference in New Issue
Block a user