From a7456e46f4cb64524386b22e2596ea93c244c16f Mon Sep 17 00:00:00 2001 From: Matthew Williams Date: Tue, 12 Nov 2013 14:41:02 -0800 Subject: SyncManager now returns copy on getCurrentSyncs() Bug:11559103 Added a new getCurrentSyncsCopy() that is public. The other version is needed for internal SSE calls. Change-Id: I0287f039a6f75abf04b65b85cb30f78353aeef4f --- core/java/android/content/SyncInfo.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/java/android/content/SyncInfo.java') diff --git a/core/java/android/content/SyncInfo.java b/core/java/android/content/SyncInfo.java index 0284882963c7..cffc653e44ef 100644 --- a/core/java/android/content/SyncInfo.java +++ b/core/java/android/content/SyncInfo.java @@ -54,6 +54,14 @@ public class SyncInfo implements Parcelable { this.startTime = startTime; } + /** @hide */ + public SyncInfo(SyncInfo other) { + this.authorityId = other.authorityId; + this.account = new Account(other.account.name, other.account.type); + this.authority = other.authority; + this.startTime = other.startTime; + } + /** @hide */ public int describeContents() { return 0; -- cgit v1.2.3