Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chelseatroy/0a22841f8de423a3952b4fa99b5bc60d to your computer and use it in GitHub Desktop.
Save chelseatroy/0a22841f8de423a3952b4fa99b5bc60d to your computer and use it in GitHub Desktop.
@Override
public void onLoadFinished(Loader<Cursor> loader, final Cursor data) {
switch (loader.getId()) {
case FRUIT_LOADER:
//do things with the fruits data
break;
case VEGGIE_LOADER:
//do things with the vegetables data
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment