Fix small issue with context menu marker

This commit is contained in:
alex 2018-02-23 12:17:41 +02:00
parent 48ef9256e2
commit dfda09b8b7

View file

@ -1815,7 +1815,11 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
}
public void showQuickSearch(ShowQuickSearchMode mode, boolean showCategories) {
hideContextMenu();
if (mode == ShowQuickSearchMode.CURRENT) {
mapContextMenu.close();
} else {
hideContextMenu();
}
QuickSearchDialogFragment fragment = getQuickSearchDialogFragment();
if (mode == ShowQuickSearchMode.START_POINT_SELECTION || mode == ShowQuickSearchMode.DESTINATION_SELECTION) {
if (fragment != null) {