Fix aidl compilation

This commit is contained in:
crimean 2019-07-09 14:20:10 +03:00 committed by Victor Shcherb
parent ef37c28ebd
commit 72ae21288e
4 changed files with 7 additions and 6 deletions

View file

@ -90,6 +90,7 @@ import net.osmand.aidl.contextmenu.ContextMenuButtonsParams;
import net.osmand.aidl.contextmenu.UpdateContextMenuButtonsParams;
import net.osmand.aidl.contextmenu.RemoveContextMenuButtonsParams;
import net.osmand.aidl.mapmarker.RemoveMapMarkersParams;
// NOTE: Add new methods at the end of file!!!

View file

@ -1057,7 +1057,7 @@ public class OsmandAidlApi {
}
}
boolean removeAllMapMarkers() {
boolean removeAllActiveMapMarkers() {
boolean refreshNeeded = false;
MapMarkersHelper markersHelper = app.getMapMarkersHelper();
List<MapMarker> mapMarkers = markersHelper.getMapMarkers();

View file

@ -49,6 +49,7 @@ import net.osmand.aidl.maplayer.point.ShowMapPointParams;
import net.osmand.aidl.maplayer.point.UpdateMapPointParams;
import net.osmand.aidl.mapmarker.AddMapMarkerParams;
import net.osmand.aidl.mapmarker.RemoveMapMarkerParams;
import net.osmand.aidl.mapmarker.RemoveMapMarkersParams;
import net.osmand.aidl.mapmarker.UpdateMapMarkerParams;
import net.osmand.aidl.mapwidget.AddMapWidgetParams;
import net.osmand.aidl.mapwidget.RemoveMapWidgetParams;
@ -75,7 +76,6 @@ import net.osmand.aidl.search.SearchParams;
import net.osmand.aidl.search.SearchResult;
import net.osmand.aidl.tiles.ASqliteDbFile;
import net.osmand.plus.OsmandApplication;
import net.osmand.plus.routing.VoiceRouter;
import net.osmand.util.Algorithms;
import org.apache.commons.logging.Log;
@ -1165,10 +1165,10 @@ public class OsmandAidlService extends Service implements AidlCallbackListener {
}
@Override
public boolean removeAllMapMarkers() {
public boolean removeAllActiveMapMarkers(RemoveMapMarkersParams params) {
try {
OsmandAidlApi api = getApi("removeAllMapMarkers");
return api != null && api.removeAllMapMarkers();
OsmandAidlApi api = getApi("removeAllActiveMapMarkers");
return api != null && api.removeAllActiveMapMarkers();
} catch (Exception e) {
handleException(e);
return false;

View file

@ -1,3 +1,3 @@
package net.osmand.aidl.mapmarker;
parcelable RemoveMapMarkerParams;
parcelable RemoveMapMarkersParams;