@Override public void onLoaderReset(Loader<Cursor> cursorLoader) { final int id = cursorLoader.getId(); switch (id) { case PriorityLoaderId: adPriority.swapCursor(null); return; case StatusLoaderId: adStatus.swapCursor(null); return; default: } }
@Override public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor cursor) { final int lid = cursorLoader.getId(); switch (lid) { case PriorityLoaderId: adPriority.swapCursor(cursor); getSupportLoaderManager().initLoader(StatusLoaderId, null, this); return; case StatusLoaderId: adStatus.swapCursor(cursor); if (id != null) { getSupportLoaderManager().initLoader(ItemLoaderId, null, this); } return; case ItemLoaderId: if (cursor.moveToFirst()) { setTitle(R.string.ui_edit_item); edName.setText(cursor.getString(0)); edDesc.setText(cursor.getString(1)); SetupSpinner(cursor.getInt(2), sPriority); SetupSpinner(cursor.getInt(3), sStatus); String time = cursor.getString(4); Calendar cal = Calendar.getInstance(); try { cal.setTime(sdf.parse(time)); } catch (ParseException e) { e.printStackTrace(); } tStartDate.setTag(cal); tStartDate.setText(sdfdate.format(cal.getTime())); tStartTime.setTag(cal); tStartTime.setText(sdftime.format(cal.getTime())); time = cursor.getString(5); cal = Calendar.getInstance(); try { cal.setTime(sdf.parse(time)); } catch (ParseException e) { e.printStackTrace(); } tEndDate.setTag(cal); tEndDate.setText(sdfdate.format(cal.getTime())); tEndTime.setTag(cal); tEndTime.setText(sdftime.format(cal.getTime())); } else { finish(); } return; default: } }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor data) { mNavigationAdapter.swapCursor(data); mPagerAdapter.swapCursor(data); selectTraining(mPosition); }
private void initData() { ContentResolver resolver = getContentResolver(); mCursor = resolver.query(Contacts.CONTENT_URI, projection, selection, selectionArgs, sortOrder); idColumnIndex = mCursor.getColumnIndex(Contacts._ID); mAdapter.swapCursor(mCursor); }
private void searchContacts(String keyword) { Uri uri = Uri.withAppendedPath(Contacts.CONTENT_FILTER_URI, Uri.encode(keyword)); ContentResolver resolver = getContentResolver(); mCursor = resolver.query(uri, projection, selection, selectionArgs, sortOrder); idColumnIndex = mCursor.getColumnIndex(Contacts._ID); mAdapter.swapCursor(mCursor); }
@Override public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { final SimpleCursorAdapter adapter = getAdapter(); adapter.swapCursor(data); if (data != null && data.getCount() > 0) { showContent(); } else { showEmpty(R.drawable.ic_info_volume_off, getString(R.string.no_rule)); } }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { if (loader.getId() == FRIENDS_LOADER_ID) { mAdapter.swapCursor(cursor); setListShown(false); setCreatePhotoVisible(cursor != null && cursor.getCount() > 0); } }
public void onLoadFinished(Loader<Cursor> loader, Cursor institutions) { adapterInst.swapCursor(institutions); Log.d(TAG, "loader is done and we have our cursor."); // Notify the ParentActivity we need it's data if any. sendInstitutionData(); // Set the Institutions spinner to the proper location or default of zero. // spinInstitutions.setSelection(setInstitution(institutionSelected, columnUsed)); updateUIElements(); }
@Override public void onLoadFinished(Loader<Cursor> arg0, Cursor cursor) { if (cursor != null) { Log.e( TAG, String.format( "Report list Cursor size: %d. Cursor columns: %s. Cursor column count: %d", cursor.getCount(), Arrays.toString(cursor.getColumnNames()), cursor.getCount())); mAdapter.swapCursor(cursor); if (isResumed()) { setListShown(true); } else { setListShownNoAnimation(true); } } setListShown(true); }
@Override public void onLoadFinished(Loader<Cursor> arg0, Cursor c) { mIdColumnIndex = c.getColumnIndex(MediaStore.Images.Media._ID); mAdapter.swapCursor(c); }
@Override public void onLoaderReset(Loader<Cursor> arg0) { adapter.swapCursor(null); }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { mAdapterChecklist.swapCursor(cursor); }
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { mCursorAdapter.swapCursor(cursor); }
@Override public void onLoaderReset(Loader<Cursor> loader) { mNavigationAdapter.swapCursor(null); mPagerAdapter.swapCursor(null); }
/* (non-Javadoc) * @see android.support.v4.app.LoaderManager.LoaderCallbacks#onLoadFinished(android.support.v4.content.Loader, java.lang.Object) */ @Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { if (PasswdCursorLoader.checkResult(loader)) { itsProviderAdapter.swapCursor(cursor); } }
@Override public void onLoaderReset(final Loader<Cursor> loader) { final SimpleCursorAdapter adapter = getAdapter(); adapter.swapCursor(null); }
public void onLoaderReset(Loader<Cursor> loader) { adapterInst.swapCursor(null); }
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { // Put the result Cursor in the adapter for the ListView mCursorAdapter.swapCursor(cursor); }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor data) { mAdapter.swapCursor(data); }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor data) { log.v(this, "onLoadFinished(data:" + data.getCount() + ")"); mAdapter.swapCursor(data); }
/* (non-Javadoc) * @see android.support.v4.app.LoaderManager.LoaderCallbacks#onLoaderReset(android.support.v4.content.Loader) */ @Override public void onLoaderReset(Loader<Cursor> loader) { if (PasswdCursorLoader.checkResult(loader)) { itsProviderAdapter.swapCursor(null); } }
@Override public void onLoaderReset(Loader<Cursor> loader) { log.v(this, "onLoaderReset()"); mAdapter.swapCursor(null); }
@Override public void onLoadFinished(Loader<Cursor> cursor, Cursor c) { mAdapter.swapCursor(c); }
@Override public void onLoaderReset(Loader<Cursor> loader) { mAdapter.swapCursor(null); }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { scAdapter.swapCursor(cursor); }
@Override public void onLoaderReset(Loader<Cursor> loader) { // Delete the reference to the existing Cursor mCursorAdapter.swapCursor(null); }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor data) { mDrawerAdapter.swapCursor(data); int position = Settings.getSurfacePosition(this); if (position >= 0) mDrawerList.setItemChecked(position, true); }