Fix a regression in sync manager

A previous change introduced the regression that we don't let
initialization syncs run - this reverts the original logic.

bug:31056110

Change-Id: I4382af1284a3296c63ab773aa4a52df01deeb853
This commit is contained in:
Svet Ganov
2016-08-25 15:40:52 -07:00
committed by Svetoslav Ganov
parent 22ad9a3116
commit dfed1c73ec

View File

@@ -2853,9 +2853,9 @@ public class SyncManager {
} }
return SYNC_OP_STATE_INVALID_NO_ACCOUNT_ACCESS; return SYNC_OP_STATE_INVALID_NO_ACCOUNT_ACCESS;
} }
if (state != AuthorityInfo.SYNCABLE) { if (state == AuthorityInfo.NOT_SYNCABLE) {
if (isLoggable) { if (isLoggable) {
Slog.v(TAG, " Dropping sync operation: isSyncable != SYNCABLE"); Slog.v(TAG, " Dropping sync operation: isSyncable == NOT_SYNCABLE");
} }
return SYNC_OP_STATE_INVALID; return SYNC_OP_STATE_INVALID;
} }