diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/PlacesFragment.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/PlacesFragment.java index 64a04aa..708ecec 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/PlacesFragment.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/PlacesFragment.java @@ -193,7 +193,7 @@ public class PlacesFragment extends Fragment { request.setLocation(location); request.setSearchRadius(AppConstants.DEF_PLACES_RADIUS); request.setSearchItemType(GooglePlacesConstants.PLACES_SEARCH_TYPE); - new GooglePlacesWorker(getActivity(), this).execute(request); + new GooglePlacesWorker(getActivity()).execute(request); } public void loadNextPage() { @@ -216,7 +216,7 @@ public class PlacesFragment extends Fragment { request.setSearchRadius(AppConstants.DEF_PLACES_RADIUS); request.setSearchItemType(GooglePlacesConstants.PLACES_SEARCH_TYPE); request.setPageToken(nextPageToken); - new GooglePlacesWorker(getActivity(), this).execute(request); + new GooglePlacesWorker(getActivity()).execute(request); } public void setNextPageToken(String nextPageToken) { diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/worker/GooglePlacesWorker.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/worker/GooglePlacesWorker.java index 5536b35..9fbe2ef 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/worker/GooglePlacesWorker.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/worker/GooglePlacesWorker.java @@ -36,13 +36,9 @@ public class GooglePlacesWorker extends AsyncTask googlePlacesResponses) { lg.debug("Post execute {}", googlePlacesResponses); -// final View view = placesFragment.getView(); -// if (view == null) { -// lg.error("Fragment not attached to the view"); -// return; -// } for (GooglePlacesResponse response : googlePlacesResponses) { - // placesFragment.setNextPageToken(response.getNextPageToken()); - // ListView places = (ListView) view.findViewById(R.id.google_places); EventBus.getDefault().post(response); - // places.setAdapter(new PlacesAdapter(ctx, response)); } } }