Use total size and not free in Storage summary.

Fixes: 36223330
Test: Settings Robotest
Change-Id: I4406dc673961db0f91ae37da3abd0e1541517c7d
This commit is contained in:
Daniel Nishi
2017-03-15 15:48:40 -07:00
parent 32992593d3
commit f1050cb7c7
3 changed files with 14 additions and 13 deletions

View File

@@ -55,8 +55,8 @@ public class StorageSummaryDonutPreferenceController extends PreferenceControlle
summary.setTitle(TextUtils.expandTemplate(
mContext.getText(R.string.storage_size_large_alternate), result.value,
result.units));
summary.setSummary(mContext.getString(R.string.storage_volume_free,
Formatter.formatFileSize(mContext, mTotalBytes - mUsedBytes)));
summary.setSummary(mContext.getString(R.string.storage_volume_total,
Formatter.formatShortFileSize(mContext, mTotalBytes)));
summary.setPercent(mUsedBytes, mTotalBytes);
summary.setEnabled(true);
}