When notify uri changes, changing the way we retrieve the userId.

Changing from UserHandle.getCallingUserId() to UserHandle.myUserId().
This makes the DocumentProvider work across users.

BUG: 16126891

Change-Id: I8ede64f2087894bb85eff5286803cdebd57e7137
This commit is contained in:
Nicolas Prevot
2014-08-06 12:38:57 +01:00
parent f86d4055fb
commit ec4bb45a8c

View File

@@ -1612,7 +1612,7 @@ public abstract class ContentResolver {
* @see #requestSync(android.accounts.Account, String, android.os.Bundle)
*/
public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) {
notifyChange(uri, observer, syncToNetwork, UserHandle.getCallingUserId());
notifyChange(uri, observer, syncToNetwork, UserHandle.myUserId());
}
/**