Rename p.2

This commit is contained in:
Nazar 2020-02-17 11:40:13 +02:00
parent 0739829d8d
commit 7cd3e678f0

View file

@ -92,8 +92,8 @@ public class ExternalApiHelper {
public static final String API_CMD_START_GPX_REC = "start_gpx_rec";
public static final String API_CMD_STOP_GPX_REC = "stop_gpx_rec";
public static final String API_CMD_SAVE_CURRENT_GPX = "save_current_gpx";
public static final String API_CMD_CLEAR_CURRENT_GPX = "clear_current_gpx";
public static final String API_CMD_SAVE_GPX = "save_gpx";
public static final String API_CMD_CLEAR_GPX = "clear_gpx";
public static final String API_CMD_SUBSCRIBE_VOICE_NOTIFICATIONS = "subscribe_voice_notifications";
public static final int VERSION_CODE = 1;
@ -556,7 +556,7 @@ public class ExternalApiHelper {
finish = true;
}
resultCode = Activity.RESULT_OK;
} else if (API_CMD_SAVE_CURRENT_GPX.equals(cmd)) {
} else if (API_CMD_SAVE_GPX.equals(cmd)) {
OsmandMonitoringPlugin plugin = OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class);
if (plugin == null) {
resultCode = RESULT_CODE_ERROR_PLUGIN_INACTIVE;
@ -568,7 +568,7 @@ public class ExternalApiHelper {
finish = true;
}
resultCode = Activity.RESULT_OK;
} else if (API_CMD_CLEAR_CURRENT_GPX.equals(cmd)) {
} else if (API_CMD_CLEAR_GPX.equals(cmd)) {
OsmandMonitoringPlugin plugin = OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class);
if (plugin == null) {
resultCode = RESULT_CODE_ERROR_PLUGIN_INACTIVE;