Code example for CursorAdapter

Methods: swapCursor

0
        super(context, c, flags);
    } 
 
    @Override 
    public Cursor swapCursor(Cursor newCursor) {
        Cursor old = super.swapCursor(newCursor);
        resetMappings(); 
        return old;
    } 
 
    @Override 
    public void changeCursor(Cursor cursor) {
        super.changeCursor(cursor);
        resetMappings(); 
    } 
 
    public void reset() { 
        resetMappings(); 
        notifyDataSetChanged();
    } 
Contextual code suggestions in your IDE  Get Codota for Java