This commit is contained in:
PavelRatushny 2017-11-08 18:13:08 +02:00
parent 114048f3c4
commit aaf4d7ad8c

View file

@ -629,7 +629,9 @@ public class TrackPointFragment extends OsmandExpandableListFragment {
private void addMapMarkersSyncGroup() {
MapMarkersHelper markersHelper = app.getMapMarkersHelper();
File gpx = getGpxDataItem().getFile();
GpxDataItem gpxDataItem = getGpxDataItem();
if (gpxDataItem != null) {
File gpx = gpxDataItem.getFile();
MarkersSyncGroup syncGroup = new MarkersSyncGroup(gpx.getAbsolutePath(),
AndroidUtils.trimExtension(gpx.getName()), MarkersSyncGroup.GPX_TYPE);
markersHelper.addMarkersSyncGroup(syncGroup);
@ -660,6 +662,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment {
tv.setTextColor(ContextCompat.getColor(getContext(), R.color.color_dialog_buttons_dark));
snackbar.show();
}
}
private void updateMenuFabVisibility(boolean visible) {
menuFab.setVisibility(visible ? View.VISIBLE : View.GONE);