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