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 /services/java/com/android/server/content/ContentService.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 'services/java/com/android/server/content/ContentService.java')
-rw-r--r-- | services/java/com/android/server/content/ContentService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/content/ContentService.java b/services/java/com/android/server/content/ContentService.java index cb35ef11c6f6..023bf2b20614 100644 --- a/services/java/com/android/server/content/ContentService.java +++ b/services/java/com/android/server/content/ContentService.java @@ -660,7 +660,7 @@ public final class ContentService extends IContentService.Stub { int userId = UserHandle.getCallingUserId(); long identityToken = clearCallingIdentity(); try { - return getSyncManager().getSyncStorageEngine().getCurrentSyncs(userId); + return getSyncManager().getSyncStorageEngine().getCurrentSyncsCopy(userId); } finally { restoreCallingIdentity(identityToken); } |