• 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

Revision6c6ddf149061ee5cbc1ba4ef73505946416cb21d (tree)
Zeit2010-12-10 07:26:15
AutorFred Quintana <fredq@goog...>
CommiterAndroid (Google) Code Review

Log Message

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

Ä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 }