Skip to content

Commit

Permalink
Fix showing progress dialog in Repositories screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Khmelenko committed Nov 12, 2016
1 parent 855ff7c commit 540997b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,14 @@ public void setRepos(List<Repo> repos) {
*/
public void setLoadingProgress(boolean isLoading) {
if (isLoading) {
mProgressDialog = ProgressDialog.show(getActivity(), "", getString(R.string.loading_msg));
if(mProgressDialog == null) {
mProgressDialog = ProgressDialog.show(getActivity(), "", getString(R.string.loading_msg));
}
} else {
mSwipeRefreshLayout.setRefreshing(false);
if(mProgressDialog != null) {
mProgressDialog.dismiss();
mProgressDialog = null;
}
}
}
Expand Down

0 comments on commit 540997b

Please sign in to comment.