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

Commit 279766e0 authored by Makoto Onuki's avatar Makoto Onuki Committed by android-build-merger
Browse files

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

am: a750014a

Change-Id: I7684a29b730f0c3a5dd1f24aea16755c0b3fea9d
parents d56f74b6 a750014a
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -3780,6 +3780,16 @@ public class SyncManager {
        if (!op.isPeriodic){
        if (!op.isPeriodic){
            return false;
            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) {
        switch (op.target.provider) {
            case "gmail-ls":
            case "gmail-ls":
            case "com.android.contacts.metadata":
            case "com.android.contacts.metadata":