Skip to content

Commit 9303919

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "Adds documentation for ContentResolver notifyChange()"
2 parents 704131c + d7a1aad commit 9303919

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/java/android/content/ContentResolver.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,8 @@ public final void unregisterContentObserver(ContentObserver observer) {
10301030
}
10311031

10321032
/**
1033-
* Notify registered observers that a row was updated.
1033+
* Notify registered observers that a row was updated and attempt to sync changes
1034+
* to the network.
10341035
* To register, call {@link #registerContentObserver(android.net.Uri , boolean, android.database.ContentObserver) registerContentObserver()}.
10351036
* By default, CursorAdapter objects will get this notification.
10361037
*
@@ -1045,10 +1046,14 @@ public void notifyChange(Uri uri, ContentObserver observer) {
10451046
* Notify registered observers that a row was updated.
10461047
* To register, call {@link #registerContentObserver(android.net.Uri , boolean, android.database.ContentObserver) registerContentObserver()}.
10471048
* By default, CursorAdapter objects will get this notification.
1049+
* If syncToNetwork is true, this will attempt to schedule a local sync using the sync
1050+
* adapter that's registered for the authority of the provided uri. No account will be
1051+
* passed to the sync adapter, so all matching accounts will be synchronized.
10481052
*
10491053
* @param uri
10501054
* @param observer The observer that originated the change, may be <code>null</null>
10511055
* @param syncToNetwork If true, attempt to sync the change to the network.
1056+
* @see #requestSync(android.accounts.Account, String, android.os.Bundle)
10521057
*/
10531058
public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) {
10541059
try {

0 commit comments

Comments
 (0)