code: private void closeCursor() {
          if (mCursor != null) {
              int count = mCursor.getCount();
              mCursor.close();
              mCursor = null;
              notifyItemRangeRemoved(0, count);
          }
          updateCursorObserver();
      }
docs: Closes the cursor, notifying observers of data changes as necessary.