Skip to content

Commit

Permalink
do not show loading overlay when slide refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
segler-alex committed May 30, 2016
1 parent 4e3cc57 commit 15c596e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ public void SetDownloadUrl(String theUrl) {
}

public void DownloadUrl(final boolean forceUpdate) {
DownloadUrl(forceUpdate,true);
}

public void DownloadUrl(final boolean forceUpdate, final boolean displayProgress) {
Log.d("DOWN","Download url:"+url);
if (TextUtils.isGraphic(url)) {
if (mycontext != null) {
if (mycontext != null && displayProgress) {
itsProgressLoading = ProgressDialog.show(mycontext, "", getActivity().getString(R.string.progress_loading));
}
new AsyncTask<Void, Void, String>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
public void onRefresh() {
Log.i("ABC", "onRefresh called from SwipeRefreshLayout");
//RefreshListGui();
DownloadUrl(true);
DownloadUrl(true,false);
}
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
public void onRefresh() {
Log.i("ABC", "onRefresh called from SwipeRefreshLayout");
//RefreshListGui();
DownloadUrl(true);
DownloadUrl(true,false);
}
}
);
Expand Down

0 comments on commit 15c596e

Please sign in to comment.