Allow multiple permission sync consent requests

Bug: 275740775

Test: atest CtsCompanionDeviceManagerUiAutomationTestCases

Change-Id: I57b1e317630127f790a349f7f2d29c2c638d9c76
This commit is contained in:
Prem
2023-03-30 23:16:50 +00:00
committed by Prem Edhara
parent 6abb34e76a
commit 4d466e09bf

View File

@@ -133,18 +133,6 @@ public class SystemDataTransferProcessor {
@UserIdInt int userId, int associationId) {
final AssociationInfo association = resolveAssociation(packageName, userId, associationId);
// Check if the request's data type has been requested before.
List<SystemDataTransferRequest> storedRequests =
mSystemDataTransferRequestStore.readRequestsByAssociationId(userId,
associationId);
for (SystemDataTransferRequest storedRequest : storedRequests) {
if (storedRequest instanceof PermissionSyncRequest) {
Slog.e(LOG_TAG, "The request has been sent before, you can not send "
+ "the same request type again.");
return null;
}
}
Slog.i(LOG_TAG, "Creating permission sync intent for userId [" + userId
+ "] associationId [" + associationId + "]");