Ignore the storage group in the Privacy bar chart.

We already filter out the storage group in the Permissions Hub because
it's going away and it produces false events.  This also filters it
out in the privacy bar chart so the two are consistent.

Test: Do not see the storage group in the privacy bar chart.
Change-Id: I6d6bc5a767db06a738ae978cb086dad685cff386
This commit is contained in:
Joel Galenson
2019-01-23 15:28:30 -08:00
parent 1fe41d44fe
commit 4fa8a61fdf

View File

@@ -111,6 +111,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())];