Skip to content

Instantly share code, notes, and snippets.

View gregwk's full-sized avatar

Gregory Kulczycki gregwk

  • Virginia Tech
  • Virginia
View GitHub Profile
@gregwk
gregwk / GalleryFragment.java
Last active April 19, 2019 23:38
Inner class FetchItemsTask in GalleryFragment
private class FetchItemsTask extends AsyncTask<Void, Void, List<GalleryItem>> {
@Override
protected List<GalleryItem> doInBackground(Void... params) {
return new FlickrFetcher().fetchItems();
}
@Override
protected void onPostExecute(List<GalleryItem> items) {
mItems = items;