Last active
April 19, 2019 23:38
-
-
Save gregwk/2e8789334ca70b6bd2e3b92825253c9d to your computer and use it in GitHub Desktop.
Inner class FetchItemsTask in GalleryFragment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
refreshView(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment