summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/content/ContentService.java
diff options
context:
space:
mode:
authorMatthew Williams <mjwilliams@google.com>2013-11-12 14:41:02 -0800
committerMatthew Williams <mjwilliams@google.com>2013-11-13 18:17:54 -0800
commita7456e46f4cb64524386b22e2596ea93c244c16f (patch)
treed9aabcce03de71591a2c0ab50447bd9eeb4a9cb8 /services/java/com/android/server/content/ContentService.java
parentc641de017ae0b15bbc13f43fd14fca6b1523ec02 (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.java2
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);
}