@Override
 public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
   mCurrencyAdapter.swapCursor(data);
   if (mPosition != ListView.INVALID_POSITION) {
     // If we don't need to restart the loader, and there's a desired position to restore
     // to, do so now.
     mListView.smoothScrollToPosition(mPosition);
   }
 }
 @Override
 public void onLoaderReset(Loader<Cursor> loader) {
   mCurrencyAdapter.swapCursor(null);
 }