Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fde2983 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Sync accounts of a specified user only

For cases when requestedAccount was null, accounts were added for
synchronization without filtering by userId.

Bug:18670536
Change-Id: Ideb397835ce420785aa9e87a1103e410d9bdd171
parent 32328b5c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -702,6 +702,11 @@ public class SyncManager {
        }

        for (AccountAndUser account : accounts) {
            // If userId is specified, do not sync accounts of other users
            if (userId >= UserHandle.USER_OWNER && account.userId >= UserHandle.USER_OWNER
                    && userId != account.userId) {
                continue;
            }
            // Compile a list of authorities that have sync adapters.
            // For each authority sync each account that matches a sync adapter.
            final HashSet<String> syncableAuthorities = new HashSet<String>();