mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Put in progressBar
This commit is contained in:
parent
f0843ca4f6
commit
53b26a567f
1 changed files with 4 additions and 4 deletions
|
|
@ -81,7 +81,7 @@ public class NearbyListFragment extends ListFragment implements TaskListener {
|
|||
progressBar.setVisibility(View.VISIBLE);
|
||||
mLatestLocation = ((NearbyActivity) getActivity()).getmLatestLocation();
|
||||
|
||||
nearbyAsyncTask = new NearbyAsyncTask();
|
||||
nearbyAsyncTask = new NearbyAsyncTask(this);
|
||||
nearbyAsyncTask.execute();
|
||||
Log.d(TAG, "Adapter set to ListView");
|
||||
|
||||
|
|
@ -89,13 +89,13 @@ public class NearbyListFragment extends ListFragment implements TaskListener {
|
|||
|
||||
@Override
|
||||
public void onTaskStarted() {
|
||||
progressDialog = ProgressDialog.show(CopyOfMainActivity.this, "Loading", "Please wait a moment!");
|
||||
progressBar.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTaskFinished(List<Place> result) {
|
||||
if (progressDialog != null) {
|
||||
progressDialog.dismiss();
|
||||
if (progressBar != null) {
|
||||
progressBar.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue