Skip to content
This repository has been archived by the owner on Jun 20, 2020. It is now read-only.

Commit

Permalink
πŸ› Partial fix for #5 (almost there)
Browse files Browse the repository at this point in the history
  • Loading branch information
r4dixx committed Jul 19, 2018
1 parent b53e253 commit 5751615
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ public void onItemClick(AdapterView<?> adapterView, View view, int position, lon
View loadingIndicator = findViewById(R.id.loading_indicator);
loadingIndicator.setVisibility(View.GONE);
mEmptyStateTextView.setText(R.string.no_internet);
swipeLayout.setRefreshing(false);
loaderManager.restartLoader(ARTICLE_LOADER_ID, null, this);
}

swipeLayout.setOnRefreshListener(
new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
loaderManager.initLoader(ARTICLE_LOADER_ID, null, ArticleActivity.this);
loaderManager.restartLoader(ARTICLE_LOADER_ID, null, ArticleActivity.this);
}
}
);
Expand Down

0 comments on commit 5751615

Please sign in to comment.