|
@@ -82,6 +82,7 @@ public class StopMapPickerFragment extends Fragment {
|
82
|
82
|
@Override
|
83
|
83
|
protected void onClusterItemRendered(StopDboMapItem clusterItem, Marker marker) {
|
84
|
84
|
_items.put(marker.getId(), clusterItem);
|
|
85
|
+ marker.setTag(clusterItem);
|
85
|
86
|
super.onClusterItemRendered(clusterItem, marker);
|
86
|
87
|
}
|
87
|
88
|
|
|
@@ -189,7 +190,9 @@ public class StopMapPickerFragment extends Fragment {
|
189
|
190
|
_map.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {
|
190
|
191
|
@Override
|
191
|
192
|
public boolean onMarkerClick(Marker marker) {
|
192
|
|
- Toast.makeText(getContext(), R.string.stop_add_map_help, Toast.LENGTH_LONG).show();
|
|
193
|
+ if (marker.getTag() instanceof StopDboMapItem) {
|
|
194
|
+ Toast.makeText(getContext(), R.string.stop_add_map_help, Toast.LENGTH_LONG).show();
|
|
195
|
+ }
|
193
|
196
|
return false;
|
194
|
197
|
}
|
195
|
198
|
});
|