support the changes to the SyncAdapter definition that allow
specifying allowParallelSyncs and isAlwaysSyncable Change-Id: Ifdeddbdd6d5a6e2edb5c340d5ebd3f75ce7d9e18
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user