development
Revision | b751cd535f8b81bf45d765c1f9232e6d05e2cfd3 (tree) |
---|---|
Zeit | 2010-12-10 06:14:48 |
Autor | Fred Quintana <fredq@goog...> |
Commiter | Fred Quintana |
support the changes to the SyncAdapter definition that allow
specifying allowParallelSyncs and isAlwaysSyncable
Change-Id: Ifdeddbdd6d5a6e2edb5c340d5ebd3f75ce7d9e18
@@ -367,7 +367,12 @@ public class SyncAdapterDriver extends Activity | ||
367 | 367 | com.android.internal.R.styleable.SyncAdapter_userVisible, true); |
368 | 368 | final boolean supportsUploading = sa.getBoolean( |
369 | 369 | com.android.internal.R.styleable.SyncAdapter_supportsUploading, true); |
370 | - return new SyncAdapterType(authority, accountType, userVisible, supportsUploading); | |
370 | + final boolean isAlwaysSyncable = sa.getBoolean( | |
371 | + com.android.internal.R.styleable.SyncAdapter_isAlwaysSyncable, false); | |
372 | + final boolean allowParallelSyncs = sa.getBoolean( | |
373 | + com.android.internal.R.styleable.SyncAdapter_allowParallelSyncs, false); | |
374 | + return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, | |
375 | + isAlwaysSyncable, allowParallelSyncs); | |
371 | 376 | } finally { |
372 | 377 | sa.recycle(); |
373 | 378 | } |