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:
@@ -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())];
|
||||
|
||||
|
Reference in New Issue
Block a user