Do not special case the storage permission group.

We are now not showing storage usages in Permission Controller,
including in the API Settings uses.  We can thus remove this code so
that Settings will reflect what Permissions Hub shows.

Bug: 130567526
Test: See the same graph here and in the dashboard.
Change-Id: Iaa7d95b05f4321543ed42833ac3a7babdb9914f0
This commit is contained in:
Joel Galenson
2019-04-16 15:44:52 -07:00
parent ee6825fd5b
commit 2102faf3e3

View File

@@ -176,9 +176,6 @@ public class PermissionBarChartPreferenceController extends BasePreferenceContro
return null; 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[ final BarViewInfo[] barViewInfos = new BarViewInfo[
Math.min(BarChartPreference.MAXIMUM_BAR_VIEWS, usageInfos.size())]; Math.min(BarChartPreference.MAXIMUM_BAR_VIEWS, usageInfos.size())];