Revert "[L10n fix] Use whitespace regex for splitting string by delimiter."
This reverts commit 08e18d6241.
Reason for revert: <Followup to splitting freespace string>
Change-Id: I169abdd990d94d6a04d0a500b9802ff438c21876
This commit is contained in:
committed by
Android (Google) Code Review
parent
08e18d6241
commit
0cac1c2b43
@@ -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("\\s");
|
||||
Formatter.formatFileSize(mContext, totalBytes - usedBytes).split(" ");
|
||||
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