Merge "Don't report suspicious periodic sync removal for gone users" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1fab6234c0
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user