summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-02-29 14:38:57 -0800
committerandroid code review <noreply-gerritcodereview@google.com>2012-02-29 14:38:59 -0800
commit9303919d7d837dedf16f09ace0013e62670568e7 (patch)
tree31affa08041793850a127efb1966136efb593f43 /core/java
parent704131cb7e4f9cc682ea57ed569375f9f289368e (diff)
parentd7a1aada2d1245eaeef973bc3e37619ce8e6d593 (diff)
Merge "Adds documentation for ContentResolver notifyChange()"
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/content/ContentResolver.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java
index cc3219b33f11..780ec110cb6b 100644
--- a/core/java/android/content/ContentResolver.java
+++ b/core/java/android/content/ContentResolver.java
@@ -1030,7 +1030,8 @@ public abstract class ContentResolver {
}
/**
- * Notify registered observers that a row was updated.
+ * Notify registered observers that a row was updated and attempt to sync changes
+ * to the network.
* To register, call {@link #registerContentObserver(android.net.Uri , boolean, android.database.ContentObserver) registerContentObserver()}.
* By default, CursorAdapter objects will get this notification.
*
@@ -1045,10 +1046,14 @@ public abstract class ContentResolver {
* Notify registered observers that a row was updated.
* To register, call {@link #registerContentObserver(android.net.Uri , boolean, android.database.ContentObserver) registerContentObserver()}.
* By default, CursorAdapter objects will get this notification.
+ * If syncToNetwork is true, this will attempt to schedule a local sync using the sync
+ * adapter that's registered for the authority of the provided uri. No account will be
+ * passed to the sync adapter, so all matching accounts will be synchronized.
*
* @param uri
* @param observer The observer that originated the change, may be <code>null</null>
* @param syncToNetwork If true, attempt to sync the change to the network.
+ * @see #requestSync(android.accounts.Account, String, android.os.Bundle)
*/
public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) {
try {