diff options
| -rw-r--r-- | services/core/java/com/android/server/content/ContentService.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/services/core/java/com/android/server/content/ContentService.java b/services/core/java/com/android/server/content/ContentService.java index 9220aa388f3e..01b23939815c 100644 --- a/services/core/java/com/android/server/content/ContentService.java +++ b/services/core/java/com/android/server/content/ContentService.java @@ -394,18 +394,9 @@ public final class ContentService extends IContentService.Stub { for (int i=0; i<numCalls; i++) { ObserverCall oc = calls.get(i); try { - // If the uri does not belong to the same user as the observer: we must add - // the userId to the uri. Otherewise the observer would think the uri belongs - // to his user. - final Uri tempUri; - if (oc.mObserverUserId != userHandle) { - tempUri = ContentProvider.maybeAddUserId(uri, userHandle); - } else { - tempUri = uri; - } - oc.mObserver.onChange(oc.mSelfChange, tempUri, userHandle); + oc.mObserver.onChange(oc.mSelfChange, uri, userHandle); if (DEBUG) Slog.d(TAG, "Notified " + oc.mObserver + " of " + "update at " - + tempUri); + + uri); } catch (RemoteException ex) { synchronized (mRootNode) { Log.w(TAG, "Found dead observer, removing"); |