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

Commit c3036a12 authored by Marco Nelissen's avatar Marco Nelissen Committed by Gerrit Code Review
Browse files

Merge "Before requerying a cursor, check if it is closed."

parents 337aa376 912ab78c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -497,7 +497,7 @@ public abstract class CursorTreeAdapter extends BaseExpandableListAdapter implem

            @Override
            public void onChange(boolean selfChange) {
                if (mAutoRequery && mCursor != null) {
                if (mAutoRequery && mCursor != null && !mCursor.isClosed()) {
                    if (false) Log.v("Cursor", "Auto requerying " + mCursor +
                            " due to update");
                    mDataValid = mCursor.requery();