Merge "Use IEC units in app info data usage."

This commit is contained in:
Treehugger Robot
2020-02-04 04:33:30 +00:00
committed by Gerrit Code Review

View File

@@ -127,7 +127,7 @@ public class AppDataUsagePreferenceController extends AppInfoPreferenceControlle
return mContext.getString(R.string.no_data_usage);
}
return mContext.getString(R.string.data_summary_format,
Formatter.formatFileSize(mContext, totalBytes),
Formatter.formatFileSize(mContext, totalBytes, Formatter.FLAG_IEC_UNITS),
DateUtils.formatDateTime(mContext, startTime,
DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_MONTH));
}