diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditor.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditor.java index 58f964bac8..0076e00c49 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditor.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditor.java @@ -59,7 +59,7 @@ public class FavoritePointEditor extends PointEditor { favorite.setDescription(""); favorite.setOriginObjectName(originObjectName); - FavoritePointEditorFragment.showAutoFillInstance(mapActivity); + FavoritePointEditorFragment.showAutoFillInstance(mapActivity, autoFill); } public void edit(FavouritePoint favorite) { diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragment.java index 739c21563b..855a0c6eca 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/FavoritePointEditorFragment.java @@ -126,13 +126,13 @@ public class FavoritePointEditorFragment extends PointEditorFragment { .addToBackStack(null).commit(); } - public static void showAutoFillInstance(final MapActivity mapActivity) { + public static void showAutoFillInstance(final MapActivity mapActivity, boolean autoFill) { FavoritePointEditor editor = mapActivity.getContextMenu().getFavoritePointEditor(); //int slideInAnim = editor.getSlideInAnimation(); //int slideOutAnim = editor.getSlideOutAnimation(); FavoritePointEditorFragment fragment = new FavoritePointEditorFragment(); - fragment.autoFill = true; + fragment.autoFill = autoFill; mapActivity.getSupportFragmentManager().beginTransaction() //.setCustomAnimations(slideInAnim, slideOutAnim, slideInAnim, slideOutAnim)