Use Per Folder Sync Setting For Inbox

Instead of Account Setting

Bug: 10827293
Change-Id: I022dc11cb7fd69ea36956a3cb93b8c3ef6316d5d
diff --git a/src/com/android/exchange/service/EasMailboxSyncHandler.java b/src/com/android/exchange/service/EasMailboxSyncHandler.java
index ab297a4..2f0f6e7 100644
--- a/src/com/android/exchange/service/EasMailboxSyncHandler.java
+++ b/src/com/android/exchange/service/EasMailboxSyncHandler.java
@@ -47,11 +47,8 @@
     }
 
     private String getEmailFilter() {
-        int syncLookback = mMailbox.mSyncLookback;
-        if (syncLookback == SyncWindow.SYNC_WINDOW_ACCOUNT
-                || mMailbox.mType == Mailbox.TYPE_INBOX) {
-            syncLookback = mAccount.mSyncLookback;
-        }
+        final int syncLookback = mMailbox.mSyncLookback == SyncWindow.SYNC_WINDOW_ACCOUNT
+                ? mAccount.mSyncLookback : mMailbox.mSyncLookback;
         switch (syncLookback) {
             case SyncWindow.SYNC_WINDOW_1_DAY:
                 return Eas.FILTER_1_DAY;