Loading core/java/android/content/CursorLoader.java +5 −0 Original line number Diff line number Diff line Loading @@ -55,8 +55,13 @@ public class CursorLoader extends AsyncTaskLoader<Cursor> { } return; } Cursor oldCursor = mCursor; mCursor = cursor; super.deliverResult(cursor); if (oldCursor != null && !oldCursor.isClosed()) { oldCursor.close(); } } public CursorLoader(Context context, Uri uri, String[] projection, String selection, Loading Loading
core/java/android/content/CursorLoader.java +5 −0 Original line number Diff line number Diff line Loading @@ -55,8 +55,13 @@ public class CursorLoader extends AsyncTaskLoader<Cursor> { } return; } Cursor oldCursor = mCursor; mCursor = cursor; super.deliverResult(cursor); if (oldCursor != null && !oldCursor.isClosed()) { oldCursor.close(); } } public CursorLoader(Context context, Uri uri, String[] projection, String selection, Loading