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:
@@ -269,7 +269,7 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
|
||||
result.value, result.units));
|
||||
mSummary.setSummary(getString(R.string.storage_volume_used,
|
||||
Formatter.formatFileSize(context, mTotalSize)));
|
||||
mSummary.setPercent((int) ((usedBytes * 100) / mTotalSize));
|
||||
mSummary.setPercent(usedBytes, mTotalSize);
|
||||
|
||||
mMeasure.forceMeasure();
|
||||
mNeedsUpdate = false;
|
||||
|
Reference in New Issue
Block a user