Merge changes from topic 'storage-o-strings'

* changes:
  Use total size and not free in Storage summary.
  Add new strings.
This commit is contained in:
Daniel Nishi
2017-03-17 22:03:47 +00:00
committed by Android (Google) Code Review
3 changed files with 22 additions and 15 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);
}