support the changes to the SyncAdapter definition that allow

specifying allowParallelSyncs and isAlwaysSyncable

Change-Id: Ifdeddbdd6d5a6e2edb5c340d5ebd3f75ce7d9e18
This commit is contained in:
Fred Quintana
2010-11-04 10:56:35 -07:00
parent 037d38264b
commit b751cd535f

View File

@@ -367,7 +367,12 @@ public class SyncAdapterDriver extends Activity
com.android.internal.R.styleable.SyncAdapter_userVisible, true);
final boolean supportsUploading = sa.getBoolean(
com.android.internal.R.styleable.SyncAdapter_supportsUploading, true);
return new SyncAdapterType(authority, accountType, userVisible, supportsUploading);
final boolean isAlwaysSyncable = sa.getBoolean(
com.android.internal.R.styleable.SyncAdapter_isAlwaysSyncable, false);
final boolean allowParallelSyncs = sa.getBoolean(
com.android.internal.R.styleable.SyncAdapter_allowParallelSyncs, false);
return new SyncAdapterType(authority, accountType, userVisible, supportsUploading,
isAlwaysSyncable, allowParallelSyncs);
} finally {
sa.recycle();
}