• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

Revisionb751cd535f8b81bf45d765c1f9232e6d05e2cfd3 (tree)
Zeit2010-12-10 06:14:48
AutorFred Quintana <fredq@goog...>
CommiterFred Quintana

Log Message

support the changes to the SyncAdapter definition that allow
specifying allowParallelSyncs and isAlwaysSyncable

Change-Id: Ifdeddbdd6d5a6e2edb5c340d5ebd3f75ce7d9e18

Ändern Zusammenfassung

Diff

--- a/apps/Development/src/com/android/development/SyncAdapterDriver.java
+++ b/apps/Development/src/com/android/development/SyncAdapterDriver.java
@@ -367,7 +367,12 @@ public class SyncAdapterDriver extends Activity
367367 com.android.internal.R.styleable.SyncAdapter_userVisible, true);
368368 final boolean supportsUploading = sa.getBoolean(
369369 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);
371376 } finally {
372377 sa.recycle();
373378 }