Hide widgets: Select track on the map, tap on the "Edit" button, "Plan route" will be opened, map widgets will be visible. If you open Menu – Plan Route – Select the same track, widgets would be visible.

This commit is contained in:
androiddevkotlin 2021-04-08 23:07:02 +03:00
parent 01eb699e3b
commit 388be5c3ef
2 changed files with 5 additions and 5 deletions

View file

@ -841,9 +841,9 @@ public class TrackMenuFragment extends ContextMenuScrollFragment implements Card
osmEditingPlugin.sendGPXFiles(mapActivity, this, gpxInfo); osmEditingPlugin.sendGPXFiles(mapActivity, this, gpxInfo);
} }
} else if (buttonIndex == EDIT_BUTTON_INDEX) { } else if (buttonIndex == EDIT_BUTTON_INDEX) {
dismiss();
String fileName = Algorithms.getFileWithoutDirs(gpxFile.path); String fileName = Algorithms.getFileWithoutDirs(gpxFile.path);
MeasurementToolFragment.showInstance(mapActivity.getSupportFragmentManager(), fileName); MeasurementToolFragment.showInstance(mapActivity.getSupportFragmentManager(), fileName);
dismiss();
} else if (buttonIndex == RENAME_BUTTON_INDEX) { } else if (buttonIndex == RENAME_BUTTON_INDEX) {
FileUtils.renameFile(mapActivity, new File(gpxFile.path), this, true); FileUtils.renameFile(mapActivity, new File(gpxFile.path), this, true);
} else if (buttonIndex == CHANGE_FOLDER_BUTTON_INDEX) { } else if (buttonIndex == CHANGE_FOLDER_BUTTON_INDEX) {

View file

@ -21,10 +21,10 @@ import java.lang.ref.WeakReference;
public class WidgetsVisibilityHelper { public class WidgetsVisibilityHelper {
private MapActivity mapActivity; private final MapActivity mapActivity;
private OsmandSettings settings; private final OsmandSettings settings;
private RoutingHelper routingHelper; private final RoutingHelper routingHelper;
private MapActivityLayers mapLayers; private final MapActivityLayers mapLayers;
public WidgetsVisibilityHelper(@NonNull MapActivity mapActivity) { public WidgetsVisibilityHelper(@NonNull MapActivity mapActivity) {
this.mapActivity = mapActivity; this.mapActivity = mapActivity;