@Override public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { mAdapter.swapCursor(data); if (data == null || data.getCount() <= 0) { showEmpty(); } else { showList(); } }
@Override public void onLoaderReset(final Loader<Cursor> loader) { mAdapter.swapCursor(null); }