diff options
| author | Matthew Williams <mjwilliams@google.com> | 2013-11-12 14:41:02 -0800 |
|---|---|---|
| committer | Matthew Williams <mjwilliams@google.com> | 2013-11-13 18:17:54 -0800 |
| commit | a7456e46f4cb64524386b22e2596ea93c244c16f (patch) | |
| tree | d9aabcce03de71591a2c0ab50447bd9eeb4a9cb8 /core/java/android/content/SyncInfo.java | |
| parent | c641de017ae0b15bbc13f43fd14fca6b1523ec02 (diff) | |
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
Diffstat (limited to 'core/java/android/content/SyncInfo.java')
| -rw-r--r-- | core/java/android/content/SyncInfo.java | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -55,6 +55,14 @@ public class SyncInfo implements Parcelable { } /** @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; } |
