Fix check GPX duplicate category

This commit is contained in:
Dima-1 2020-03-30 16:57:09 +03:00
parent 5863d257f6
commit e7e543fff4

View file

@ -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);
}
}