Use DataUsageFormatter to format app data usage
Use the new unitsContentDescription from Formatter.formatBytes() Fix: 318780411 Test: manual - on AppDataUsage Test: unit test Change-Id: I55079c83db2e46a48f49f746f2371825ec0bb029
This commit is contained in:
@@ -56,7 +56,10 @@ public final class DataUsageUtils {
|
||||
|
||||
/**
|
||||
* Format byte value to readable string using IEC units.
|
||||
*
|
||||
* @deprecated Use {@link com.android.settings.datausage.lib.DataUsageFormatter} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static CharSequence formatDataUsage(Context context, long byteValue) {
|
||||
final BytesResult res = Formatter.formatBytes(context.getResources(), byteValue,
|
||||
Formatter.FLAG_IEC_UNITS);
|
||||
|
||||
Reference in New Issue
Block a user