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

Commit 1fab6234 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't report suspicious periodic sync removal for gone users" into oc-mr1-dev

parents faa21e1a f85a248a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3780,6 +3780,16 @@ public class SyncManager {
        if (!op.isPeriodic){
            return false;
        }
        boolean found = false;
        for (UserInfo user : UserManager.get(mContext).getUsers(/*excludeDying=*/ true)) {
            if (op.target.userId == user.id) {
                found = true;
                break;
            }
        }
        if (!found) {
            return false; // User is being removed, okay.
        }
        switch (op.target.provider) {
            case "gmail-ls":
            case "com.android.contacts.metadata":