Properly manage Sync Window

Start with 1
Increment whenever we detect a possible loop
Reset back to one whenever we do not detect a possible loop.

Not sure how this worked before. We probably get SYNC_RESULT_MORE_AVAILABLE
and either increment the window to 1 or reset it 1. But on this particular
server, maybe WindowSize=0 does not result in a SYNC_RESULT_MORE_AVAILABLE.

Bug: 11247743
Change-Id: Ic25f694288242d4dc6630739d53a39ba1a3a6a9f
diff --git a/src/com/android/exchange/service/EasSyncHandler.java b/src/com/android/exchange/service/EasSyncHandler.java
index da5d76d..dfbab46 100644
--- a/src/com/android/exchange/service/EasSyncHandler.java
+++ b/src/com/android/exchange/service/EasSyncHandler.java
@@ -400,12 +400,11 @@
         // TODO: Properly handle UI status updates.
         //syncMailboxStatus(EmailServiceStatus.IN_PROGRESS, 0);
         int result = SYNC_RESULT_MORE_AVAILABLE;
-        int numWindows = 0;
+        int numWindows = 1;
         String key = getSyncKey();
         while (result == SYNC_RESULT_MORE_AVAILABLE) {
             result = performOneSync(syncResult, numWindows);
             // TODO: Clear pending request queue.
-            ++numWindows;
             final String newKey = getSyncKey();
             if (result == SYNC_RESULT_MORE_AVAILABLE && key.equals(newKey)) {
                 LogUtils.e(TAG,