Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09328a25 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Removing closed cursor on stop

The client of the loader may have already closed the cursor,
so we need to forget it, otherwise the closed cursor
will be redelivered on start.


Change-Id: I30e005ea0827966956bc276a2d3d7b13c95850af
parent aebf9ea3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,8 +100,8 @@ public class CursorLoader extends AsyncTaskLoader<Cursor> {
    public void stopLoading() {
        if (mCursor != null && !mCursor.isClosed()) {
            mCursor.close();
            mCursor = null;
        }
        mCursor = null;

        // Attempt to cancel the current load task if possible.
        cancelLoad();