mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Modify comments
This commit is contained in:
parent
23eb8a2d37
commit
2a7a0a3e08
1 changed files with 3 additions and 2 deletions
|
|
@ -63,14 +63,14 @@ public class NearbyListFragment extends ListFragment {
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Do asynchronously?
|
//TODO: Do asynchronously
|
||||||
@Override
|
@Override
|
||||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||||
|
|
||||||
//Load from data source (NearbyPlaces.java)
|
//Load from data source (NearbyPlaces.java)
|
||||||
|
|
||||||
mLatestLocation = ((NearbyActivity) getActivity()).getmLatestLocation();
|
mLatestLocation = ((NearbyActivity) getActivity()).getmLatestLocation();
|
||||||
//FIXME: Hardcoding mLatestLocation to Michigan for testing
|
//Hardcoding mLatestLocation to Michigan for testing
|
||||||
//mLatestLocation = new LatLng(44.182205, -84.506836);
|
//mLatestLocation = new LatLng(44.182205, -84.506836);
|
||||||
|
|
||||||
places = loadAttractionsFromLocation(mLatestLocation);
|
places = loadAttractionsFromLocation(mLatestLocation);
|
||||||
|
|
@ -147,6 +147,7 @@ public class NearbyListFragment extends ListFragment {
|
||||||
distance.setText(place.distance);
|
distance.setText(place.distance);
|
||||||
|
|
||||||
//TODO: Check for description type and set Drawable image here
|
//TODO: Check for description type and set Drawable image here
|
||||||
|
//Types of desc: landmark, city, event, mountain, isle
|
||||||
icon.setImageResource(place.image);
|
icon.setImageResource(place.image);
|
||||||
|
|
||||||
// Return the completed view to render on screen
|
// Return the completed view to render on screen
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue