Fix double adding of special attribution usage

Fixes: 180019623
Test: manual
Change-Id: I6e0681e0126bc563d8af4cd11c7db0785e47c912
This commit is contained in:
Nate Myren
2021-02-11 12:40:48 -08:00
parent 573555ffa8
commit f187670270

View File

@@ -693,13 +693,14 @@ public class PermissionUsageHelper {
for (int usageNum = 0; usageNum < rawUsages.size(); usageNum++) {
OpUsage usage = rawUsages.get(usageNum);
// If this attribution is a proxy, remove it
if (toRemoveProxies.contains(usage.toPackageAttr())) {
continue;
}
// If this attribution has a special attribution, do not remove it
if (specialAttributions.contains(usage.toPackageAttr())) {
deDuped.add(usage);
}
// If this attribution is a proxy, remove it
if (toRemoveProxies.contains(usage.toPackageAttr())) {
continue;
}