Commit 3da30c2a authored by Varun Patil's avatar Varun Patil

feat(map): Close card on tapping in empty area

parent f917ed22
......@@ -663,14 +663,9 @@ public class CampusMapView extends SubsamplingScaleImageView {
PointF sCoord = viewToSourceCoord(e.getX(),
e.getY());
Marker marker = getNearestMarker(sCoord);
if (isMarkerInTouchRegion(marker, sCoord)) {
// mMainActivity.resultMarker(marker.name);
mainActivity.editText.setText(marker.getName());
mainActivity.editText.setText(isMarkerInTouchRegion(marker, sCoord) ? marker.getName() : "");
mainActivity.displayMap();
}
} else {
}
return true;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment