From 6923a489adfca21a3cc661569cb2fe38fd20e94a Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 11 Dec 2014 16:14:00 +0200 Subject: [PATCH] Fixed bug when it's not possible to change custom filter after setting in once in waypoints --- .../net/osmand/plus/helpers/WaypointDialogHelper.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java index 5a60a3887a..5c22158e7d 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java @@ -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; }