Map markers small fix

This commit is contained in:
Alexey Kulish 2016-02-19 18:21:18 +03:00
parent 7907e8c288
commit cf39638abd
2 changed files with 11 additions and 2 deletions

View file

@ -114,6 +114,7 @@
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="2dp"
android:focusable="false"
android:clickable="false"
android:scaleType="center"

View file

@ -237,6 +237,8 @@ public class MapMarkerDialogHelper {
markersHelper.removeMarkersHistory();
if (markersHelper.getActiveMapMarkers().size() == 0) {
mapActivity.getDashboard().hideDashboard();
} else if (helperCallbacks != null) {
helperCallbacks.reloadAdapter();
} else {
reloadListAdapter(listAdapter);
}
@ -273,6 +275,8 @@ public class MapMarkerDialogHelper {
markersHelper.removeActiveMarkers();
if (markersHelper.getMapMarkersHistory().size() == 0) {
mapActivity.getDashboard().hideDashboard();
} else if (helperCallbacks != null) {
helperCallbacks.reloadAdapter();
} else {
reloadListAdapter(listAdapter);
}
@ -290,7 +294,11 @@ public class MapMarkerDialogHelper {
@Override
public boolean onMenuItemClick(MenuItem item) {
markersHelper.reverseActiveMarkersOrder();
reloadListAdapter(listAdapter);
if (helperCallbacks != null) {
helperCallbacks.reloadAdapter();
} else {
reloadListAdapter(listAdapter);
}
return true;
}
});
@ -671,7 +679,7 @@ public class MapMarkerDialogHelper {
}
private void generateGPX(List<MapMarker> markers) {
final File dir = app.getAppPath(IndexConstants.GPX_INDEX_DIR + "/map points");
final File dir = app.getAppPath(IndexConstants.GPX_INDEX_DIR + "/map markers");
if (!dir.exists()) {
dir.mkdirs();
}