Loading core/java/android/content/ContentResolver.java +6 −1 Original line number Diff line number Diff line Loading @@ -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. * Loading @@ -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 { Loading Loading
core/java/android/content/ContentResolver.java +6 −1 Original line number Diff line number Diff line Loading @@ -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. * Loading @@ -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 { Loading