Merge "Change storage_summary string id to fix crash" into main
This commit is contained in:
@@ -93,7 +93,7 @@ public class TopLevelStoragePreferenceController extends BasePreferenceControlle
|
||||
private String getSummary(long usedBytes, long totalBytes) {
|
||||
NumberFormat percentageFormat = NumberFormat.getPercentInstance();
|
||||
|
||||
return mContext.getString(R.string.storage_summary,
|
||||
return mContext.getString(R.string.storage_toplevel_summary,
|
||||
totalBytes == 0L ? "0" : percentageFormat.format(((double) usedBytes) / totalBytes),
|
||||
Formatter.formatFileSize(mContext, totalBytes - usedBytes));
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public class LowStorageSlice implements CustomSliceable {
|
||||
if (usedPercentage < LOW_STORAGE_THRESHOLD) {
|
||||
// For clients that ignore error checking, a generic storage slice will be given.
|
||||
final CharSequence titleStorage = mContext.getText(R.string.storage_settings);
|
||||
final String summaryStorage = mContext.getString(R.string.storage_summary,
|
||||
final String summaryStorage = mContext.getString(R.string.storage_toplevel_summary,
|
||||
percentageString, freeSizeString);
|
||||
|
||||
return listBuilder
|
||||
|
||||
Reference in New Issue
Block a user