Merge "Remove a method" into jb-mr2-dev

This commit is contained in:
Scott Kennedy
2013-03-14 18:32:35 +00:00
committed by Android (Google) Code Review

View File

@@ -68,7 +68,7 @@ public class CursorLoader extends AsyncTaskLoader<Cursor> {
try {
// Ensure the cursor window is filled.
cursor.getCount();
registerContentObserver(cursor, mObserver);
cursor.registerContentObserver(mObserver);
} catch (RuntimeException ex) {
cursor.close();
throw ex;
@@ -93,14 +93,6 @@ public class CursorLoader extends AsyncTaskLoader<Cursor> {
}
}
/**
* Registers an observer to get notifications from the content provider
* when the cursor needs to be refreshed.
*/
void registerContentObserver(Cursor cursor, ContentObserver observer) {
cursor.registerContentObserver(mObserver);
}
/* Runs on the UI thread */
@Override
public void deliverResult(Cursor cursor) {