Fixes #5829
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2016-11-01 08:53:54 -07:00
parent 80a96aa83c
commit 469f41b955

View File

@ -66,8 +66,8 @@ public abstract class GiphyFragment extends Fragment implements LoaderManager.Lo
public void onLoadFinished(Loader<List<GiphyImage>> loader, List<GiphyImage> data) { public void onLoadFinished(Loader<List<GiphyImage>> loader, List<GiphyImage> data) {
this.loadingProgress.setVisibility(View.GONE); this.loadingProgress.setVisibility(View.GONE);
if (data.isEmpty()) noResultsView.setVisibility(View.VISIBLE); if (data == null || data.isEmpty()) noResultsView.setVisibility(View.VISIBLE);
else noResultsView.setVisibility(View.GONE); else noResultsView.setVisibility(View.GONE);
this.giphyAdapter.setImages(data); this.giphyAdapter.setImages(data);
} }