Fix a regression in sync manager

am: dfed1c73ec

Change-Id: Ib9317b1a80836b9162a443dfa06c73b4ba1f8337
This commit is contained in:
Svet Ganov
2016-08-25 23:20:58 +00:00
committed by android-build-merger

View File

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