Fixed bug when it's not possible to change custom filter after setting in once in waypoints

This commit is contained in:
Denis 2014-12-11 16:14:00 +02:00
parent af5c7e65fd
commit 6923a489ad

View file

@ -475,8 +475,19 @@ public class WaypointDialogHelper implements OsmAndLocationListener {
}
});
TextView tv = (TextView) v.findViewById(R.id.header_text);
tv.setText(getHeader(type, checked, ctx));
v.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (type == WaypointHelper.POI && btn.isChecked()){
running[0] = position;
thisAdapter.notifyDataSetInvalidated();
selectPoi(running, thisAdapter, type, true, ctx);
}
}
});
return v;
}