development
Revision | 6c6ddf149061ee5cbc1ba4ef73505946416cb21d (tree) |
---|---|
Zeit | 2010-12-10 07:26:15 |
Autor | Fred Quintana <fredq@goog...> |
Commiter | Android (Google) Code Review |
Merge "support the changes to the SyncAdapter definition that allow specifying allowParallelSyncs and isAlwaysSyncable"
@@ -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 | } |