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:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user