Merge "Ignore the storage group in the Privacy bar chart."

This commit is contained in:
TreeHugger Robot
2019-01-24 16:42:30 +00:00
committed by Android (Google) Code Review

View File

@@ -112,6 +112,9 @@ public class PermissionBarChartPreferenceController extends BasePreferenceContro
return null;
}
// STOPSHIP: Ignore the STORAGE group since it's going away.
usageInfos.removeIf(usage -> usage.getName().equals("android.permission-group.STORAGE"));
final BarViewInfo[] barViewInfos = new BarViewInfo[
Math.min(BarChartPreference.MAXIMUM_BAR_VIEWS, usageInfos.size())];