diff --git a/OsmAnd/src/net/osmand/plus/activities/actions/OsmAndDialogs.java b/OsmAnd/src/net/osmand/plus/activities/actions/OsmAndDialogs.java index 66ad409d36..76c13a358d 100644 --- a/OsmAnd/src/net/osmand/plus/activities/actions/OsmAndDialogs.java +++ b/OsmAnd/src/net/osmand/plus/activities/actions/OsmAndDialogs.java @@ -39,4 +39,9 @@ public class OsmAndDialogs { public static final int DIALOG_SHARE_LOCATION = 204; public static final int DIALOG_SAVE_DIRECTIONS = 206; public static final int DIALOG_START_GPS = 207; + + + public static int getPluginDialogId(int pluginId, int dialogId) { + return (pluginId + 3) * 100 + dialogId; + } } diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java b/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java index 02418312d0..1d906eb690 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditingPOIActivity.java @@ -72,12 +72,13 @@ public class EditingPOIActivity implements DialogProvider { // private final static Log log = LogUtil.getLog(EditingPOIActivity.class); /* dialog stuff */ - private static final int DIALOG_CREATE_POI = 200; - private static final int DIALOG_EDIT_POI = 201; - protected static final int DIALOG_SUB_CATEGORIES = 202; - protected static final int DIALOG_POI_TYPES = 203; - private static final int DIALOG_DELETE_POI = 204; - private static final int DIALOG_OPENING_HOURS = 205; + public static final int DIALOG_PLUGIN = 600; + private static final int DIALOG_CREATE_POI = DIALOG_PLUGIN + 0; + private static final int DIALOG_EDIT_POI = DIALOG_PLUGIN + 1; + protected static final int DIALOG_SUB_CATEGORIES = DIALOG_PLUGIN + 2; + protected static final int DIALOG_POI_TYPES = DIALOG_PLUGIN + 3; + private static final int DIALOG_DELETE_POI = DIALOG_PLUGIN + 4; + private static final int DIALOG_OPENING_HOURS = DIALOG_PLUGIN + 5; private static final String KEY_AMENITY_NODE = "amenity_node"; private static final String KEY_AMENITY = "amenity";