Use total size and not free in Storage summary.
Fixes: 36223330 Test: Settings Robotest Change-Id: I4406dc673961db0f91ae37da3abd0e1541517c7d
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user