From 75bb9e0d87d3484d69b74f7d5b23dd1c61fae160 Mon Sep 17 00:00:00 2001 From: Rosty Date: Thu, 12 Jan 2017 16:30:27 +0200 Subject: [PATCH] add favorite show dialog fix --- .../plus/mapcontextmenu/editors/FavoritePointEditor.java | 2 +- .../mapcontextmenu/editors/FavoritePointEditorFragment.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)