Code example for ResourceCursorAdapter

Methods: getCursor, notifyDataSetChanged

0
    } 
 
    @Override 
    public void notifyDataSetChanged() { 
        if (DBG) Log.d(LOG_TAG, "notifyDataSetChanged");
        super.notifyDataSetChanged(); 
 
        // mSearchView.onDataSetChanged(); // TODO: 
 
        updateSpinnerState(getCursor());
    } 
 
    @Override 
    public void notifyDataSetInvalidated() { 
        if (DBG) Log.d(LOG_TAG, "notifyDataSetInvalidated");
        super.notifyDataSetInvalidated(); 
 
        updateSpinnerState(getCursor());
    } 
 
    private void updateSpinnerState(Cursor cursor) {