From e7e543fff47a847d8a63fa7f8d8a5ce4bb04dfd5 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Mon, 30 Mar 2020 16:57:09 +0300 Subject: [PATCH] Fix check GPX duplicate category --- .../plus/mapcontextmenu/editors/PointEditorFragmentNew.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/PointEditorFragmentNew.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/PointEditorFragmentNew.java index d1f00c9a77..6c0f2b67f7 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/PointEditorFragmentNew.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/PointEditorFragmentNew.java @@ -147,7 +147,6 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment { public void onClick(View v) { DialogFragment dialogFragment = createSelectCategoryDialog(); if (dialogFragment != null) { - dialogFragment.show(getChildFragmentManager(), SelectCategoryDialogFragment.TAG); } } @@ -788,7 +787,8 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment { PointEditor editor = getEditor(); if (editor != null) { EditCategoryDialogFragment dialogFragment = - EditCategoryDialogFragment.createInstance(editor.getFragmentTag(), getCategories(), false); + EditCategoryDialogFragment.createInstance(editor.getFragmentTag(), getCategories(), + !editor.getFragmentTag().equals(FavoritePointEditor.TAG)); dialogFragment.show(requireActivity().getSupportFragmentManager(), EditCategoryDialogFragment.TAG); } }