From 3138a9938b19d596b1581a538eb019f134903d06 Mon Sep 17 00:00:00 2001 From: Svet Ganov Date: Wed, 15 Jun 2016 16:57:32 -0700 Subject: [PATCH] Don't dispatch Uris with appended user handle This change fixes a bug where we started appending the user id to the changing Uri for observers to know what user's Uri changed. This is problematic as it changes the Uri structure expected by observers. Also there are no public APIs to factor out the user id from the Uri. If a system component needs to know for which user a Uri changed it can use ContentObserver#onChange(boolean, Uri, int) where the last argument is the user id. bug:19312280 Change-Id: I5f0982ac3c8d6b6eab060bab65d3b53182660ac7 --- .../com/android/server/content/ContentService.java | 13 ++----------- 1 file 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 1b2ccd7e43adc..58b46bc9bd1e6 100644 --- a/services/core/java/com/android/server/content/ContentService.java +++ b/services/core/java/com/android/server/content/ContentService.java @@ -393,18 +393,9 @@ public final class ContentService extends IContentService.Stub { for (int i=0; i