diff options
| author | Jeff Brown <jeffbrown@google.com> | 2015-06-02 14:52:50 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2015-06-02 14:53:39 -0700 |
| commit | 143739cb6b0468804f83f2398b3666eb21280de6 (patch) | |
| tree | b66884030a27ba759c8acb423b4e53f442273c56 | |
| parent | 57bf3d9c2d0d73324480a8ca383828cdc4bcb143 (diff) | |
| download | frameworks_base-143739cb6b0468804f83f2398b3666eb21280de6.zip frameworks_base-143739cb6b0468804f83f2398b3666eb21280de6.tar.gz frameworks_base-143739cb6b0468804f83f2398b3666eb21280de6.tar.bz2 | |
Clarify docs on registerContentObserver.
Bug: 19343752
Change-Id: If241e329f73925964f5589ee72d63a1fae54ef1b
| -rw-r--r-- | core/java/android/content/ContentResolver.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java index 17a8eb7..96a80e7 100644 --- a/core/java/android/content/ContentResolver.java +++ b/core/java/android/content/ContentResolver.java @@ -1552,23 +1552,21 @@ public abstract class ContentResolver { * * @param uri The URI to watch for changes. This can be a specific row URI, or a base URI * for a whole class of content. - * @param notifyForDescendents If <code>true</code> changes to URIs beginning with <code>uri</code> - * will also cause notifications to be sent. If <code>false</code> only changes to the exact URI - * specified by <em>uri</em> will cause notifications to be sent. If <code>true</code>, any URI values - * at or below the specified URI will also trigger a match. + * @param notifyForDescendents When false, the observer will be notified whenever a + * change occurs to the exact URI specified by <code>uri</code> or to one of the + * URI's ancestors in the path hierarchy. When true, the observer will also be notified + * whenever a change occurs to the URI's descendants in the path hierarchy. * @param observer The object that receives callbacks when changes occur. * @see #unregisterContentObserver */ public final void registerContentObserver(Uri uri, boolean notifyForDescendents, - ContentObserver observer) - { + ContentObserver observer) { registerContentObserver(uri, notifyForDescendents, observer, UserHandle.myUserId()); } /** @hide - designated user version */ public final void registerContentObserver(Uri uri, boolean notifyForDescendents, - ContentObserver observer, int userHandle) - { + ContentObserver observer, int userHandle) { try { getContentService().registerContentObserver(uri, notifyForDescendents, observer.getContentObserver(), userHandle); |
