use getLocation as in FavoritesListFragment

This commit is contained in:
sonora 2014-12-30 12:17:49 +01:00
parent ee12668a23
commit 90f87ddc35

View file

@ -128,6 +128,10 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
class HistoryAdapter extends ArrayAdapter<HistoryEntry> { class HistoryAdapter extends ArrayAdapter<HistoryEntry> {
private LatLon location; private LatLon location;
public LatLon getLocation() {
return location;
}
public void updateLocation(LatLon l) { public void updateLocation(LatLon l) {
location = l; location = l;
notifyDataSetChanged(); notifyDataSetChanged();
@ -138,7 +142,7 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
} }
@Override @Override
public View getView(final int position, View convertView, ViewGroup parent) { public View getView(int position, View convertView, ViewGroup parent) {
View row = convertView; View row = convertView;
if (row == null) { if (row == null) {
LayoutInflater inflater = getActivity().getLayoutInflater(); LayoutInflater inflater = getActivity().getLayoutInflater();