[L10n fix] Use whitespace regex for splitting string by delimiter.
BUG: 387197875 Test: manual, logging Flag: EXEMPT bugfix Change-Id: Ic36257f33101d5e50496b5ca9e189efa447490f5
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();
|
||||
final String[] freeSpace =
|
||||
Formatter.formatFileSize(mContext, totalBytes - usedBytes).split(" ");
|
||||
Formatter.formatFileSize(mContext, totalBytes - usedBytes).split("\\s");
|
||||
return mContext.getString(R.string.storage_summary,
|
||||
totalBytes == 0L ? "0" : percentageFormat.format(((double) usedBytes) / totalBytes),
|
||||
freeSpace[0], freeSpace[1]);
|
||||
|
||||
Reference in New Issue
Block a user