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

Commit a72151b5 authored by Fyodor Kupolov's avatar Fyodor Kupolov Committed by Android (Google) Code Review
Browse files

Merge "Sync accounts of a specified user only"

parents 2b94d589 6fde2983
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>();