Fix #2474554 (After meeting policy req's, no sync)
* We weren't retrying the initial account sync after policies are
successfully enabled. This results in failure to sync, as we
go right into a ping loop.
* Retry account sync after provisioning is first successful
Bug: 2474554
Change-Id: I20165a5941626b690710f82088d8d861679084b2
diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java
index 7805cb5..410d716 100644
--- a/src/com/android/exchange/EasSyncService.java
+++ b/src/com/android/exchange/EasSyncService.java
@@ -1249,6 +1249,9 @@
// Set the appropriate failure status
mExitStatus = EXIT_SECURITY_FAILURE;
return;
+ } else {
+ // If we succeeded, try again...
+ continue;
}
} else if (isAuthError(code)) {
mExitStatus = EXIT_LOGIN_FAILURE;