Fix a problem in which we don't set an Account's Policy
* In the case in which a policy exists but it isn't being enforced,
we didn't set the account's policy.
* This leads to behavior which prevents a new account from syncing
Change-Id: I3297782842f10d08abdf2805438e2afb11705313
diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java
index e6d7285..0dcda22 100644
--- a/src/com/android/exchange/EasSyncService.java
+++ b/src/com/android/exchange/EasSyncService.java
@@ -1639,6 +1639,8 @@
return true;
}
} else {
+ // Write the policy out so that SecurityPolicy can use it...
+ policy.setAccountPolicy(mContext, mAccount, "0");
// Notify that we are blocked because of policies
SecurityPolicyDelegate.policiesRequired(mContext, mAccount.mId);
}