Пример #1
0
 @Override
 public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) {
   mAdapter.swapCursor(data);
   if (data == null || data.getCount() <= 0) {
     showEmpty();
   } else {
     showList();
   }
 }
Пример #2
0
 @Override
 public void onLoaderReset(final Loader<Cursor> loader) {
   mAdapter.swapCursor(null);
 }