Cleaning wiki utils from wiki fragment.
parent
d62772241a
commit
2b739c4fdb
|
@ -34,7 +34,6 @@ import pl.tpolgrabia.urbanexplorerutils.events.DataLoadingFinishEvent;
|
||||||
import pl.tpolgrabia.urbanexplorerutils.events.RefreshEvent;
|
import pl.tpolgrabia.urbanexplorerutils.events.RefreshEvent;
|
||||||
import pl.tpolgrabia.urbanexplorer.utils.*;
|
import pl.tpolgrabia.urbanexplorer.utils.*;
|
||||||
import pl.tpolgrabia.urbanexplorerutils.utils.DebugUtils;
|
import pl.tpolgrabia.urbanexplorerutils.utils.DebugUtils;
|
||||||
import pl.tpolgrabia.wikibinding.utils.WikiUtils;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@ -54,7 +53,6 @@ public class WikiLocationsFragment extends Fragment {
|
||||||
private int lastFetchSize = -1;
|
private int lastFetchSize = -1;
|
||||||
private String currentGeocodedLocation;
|
private String currentGeocodedLocation;
|
||||||
private GeocoderUtils geocoderUtils;
|
private GeocoderUtils geocoderUtils;
|
||||||
private WikiUtils wikiUtils;
|
|
||||||
private WikiLocationCallback locationHandler;
|
private WikiLocationCallback locationHandler;
|
||||||
private WikiLocationProviderStatusCallback providerHandler;
|
private WikiLocationProviderStatusCallback providerHandler;
|
||||||
|
|
||||||
|
@ -78,7 +76,6 @@ public class WikiLocationsFragment extends Fragment {
|
||||||
|
|
||||||
private void refreshSettings() {
|
private void refreshSettings() {
|
||||||
geocoderUtils = new GeocoderUtils(getActivity(), AppConstants.GOOGLE_API_KEY);
|
geocoderUtils = new GeocoderUtils(getActivity(), AppConstants.GOOGLE_API_KEY);
|
||||||
wikiUtils = new WikiUtils(getActivity(), getWikiLocale(getActivity()));
|
|
||||||
ListView locations = (ListView) getView().findViewById(R.id.wiki_places);
|
ListView locations = (ListView) getView().findViewById(R.id.wiki_places);
|
||||||
locations.setOnItemLongClickListener(new FetchWikiLocationsCallback(this));
|
locations.setOnItemLongClickListener(new FetchWikiLocationsCallback(this));
|
||||||
}
|
}
|
||||||
|
@ -129,8 +126,6 @@ public class WikiLocationsFragment extends Fragment {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// wikiUtils.fetchAppData(new WikiFetchAppDataCallback(this, activity));
|
|
||||||
// FIXME hardcoded locale value
|
|
||||||
final Location location = LocationUtils.getLastKnownLocation(ctx);
|
final Location location = LocationUtils.getLastKnownLocation(ctx);
|
||||||
if (location == null) {
|
if (location == null) {
|
||||||
lg.warn("Location not available");
|
lg.warn("Location not available");
|
||||||
|
|
Loading…
Reference in New Issue