Improve content description of data usage chart
Use full month description, and add comma between date and percent. Fix: 318771241 Test: manual - on DataUsageList Change-Id: Ice18f162ab7cb908a3582308495bfddbd3dff488
This commit is contained in:
@@ -124,7 +124,7 @@ public class ChartDataUsagePreference extends Preference {
|
||||
UsageView chart, @NonNull List<NetworkUsageData> usageSummary) {
|
||||
final Context context = getContext();
|
||||
final StringBuilder contentDescription = new StringBuilder();
|
||||
final int flags = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_MONTH;
|
||||
final int flags = DateUtils.FORMAT_SHOW_DATE;
|
||||
|
||||
// Setup a brief content description.
|
||||
final String startDate = DateUtils.formatDateTime(context, mStart, flags);
|
||||
@@ -153,7 +153,7 @@ public class ChartDataUsagePreference extends Preference {
|
||||
nodeDate = DateUtils.formatDateRange(context, data.getStartTime(),
|
||||
data.getEndTime(), flags);
|
||||
}
|
||||
nodeContentDescription = String.format(";%s %d%%", nodeDate, dataUsagePercentage);
|
||||
nodeContentDescription = String.format("; %s, %d%%", nodeDate, dataUsagePercentage);
|
||||
|
||||
contentDescription.append(nodeContentDescription);
|
||||
}
|
||||
|
Reference in New Issue
Block a user