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

Commit debb2e25 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

This may fix LoaderManager bug where a closed cursor could be used.

Change-Id: I362d5f86dcbdbede921ef9d29c849ed6401850ea
parent 02890fd0
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -185,12 +185,15 @@ class LoaderManagerImpl implements LoaderManager {
        void stop() {
            if (DEBUG) Log.v(TAG, "  Stopping: " + this);
            mStarted = false;
            if (!mRetaining) {
                if (mLoader != null && mListenerRegistered) {
                    // Let the loader know we're done with it
                    mListenerRegistered = false;
                    mLoader.unregisterListener(this);
                    mLoader.stopLoading();
                }
                mData = null;
            }
        }
        
        void destroy() {