mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Add logging to adapter
This commit is contained in:
parent
48e55de44a
commit
d2e1c50fc5
1 changed files with 4 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ public class NearbyListFragment extends ListFragment {
|
|||
}
|
||||
);
|
||||
}
|
||||
//FIXME: This doesn't sort appropriately
|
||||
|
||||
for(int i = 0; i < places.size(); i++) {
|
||||
String distance = formatDistanceBetween(mLatestLocation, places.get(i).location);
|
||||
System.out.println("Sorted " + places.get(i).name + " at " + distance + " away.");
|
||||
|
|
@ -123,6 +123,9 @@ public class NearbyListFragment extends ListFragment {
|
|||
public View getView(int position, View convertView, ViewGroup parent) {
|
||||
// Get the data item for this position
|
||||
Place place = (Place) getItem(position);
|
||||
//FIXME: This never gets called
|
||||
Log.d(TAG, "Place " + place.name);
|
||||
|
||||
// Check if an existing view is being reused, otherwise inflate the view
|
||||
if (convertView == null) {
|
||||
convertView = LayoutInflater.from(getContext()).inflate(R.layout.item_place, parent, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue