Merge "Remove a method" into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e0e448f181
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user