Fix check GPX duplicate category
This commit is contained in:
parent
5863d257f6
commit
e7e543fff4
1 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,6 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
DialogFragment dialogFragment = createSelectCategoryDialog();
|
DialogFragment dialogFragment = createSelectCategoryDialog();
|
||||||
if (dialogFragment != null) {
|
if (dialogFragment != null) {
|
||||||
|
|
||||||
dialogFragment.show(getChildFragmentManager(), SelectCategoryDialogFragment.TAG);
|
dialogFragment.show(getChildFragmentManager(), SelectCategoryDialogFragment.TAG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -788,7 +787,8 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment {
|
||||||
PointEditor editor = getEditor();
|
PointEditor editor = getEditor();
|
||||||
if (editor != null) {
|
if (editor != null) {
|
||||||
EditCategoryDialogFragment dialogFragment =
|
EditCategoryDialogFragment dialogFragment =
|
||||||
EditCategoryDialogFragment.createInstance(editor.getFragmentTag(), getCategories(), false);
|
EditCategoryDialogFragment.createInstance(editor.getFragmentTag(), getCategories(),
|
||||||
|
!editor.getFragmentTag().equals(FavoritePointEditor.TAG));
|
||||||
dialogFragment.show(requireActivity().getSupportFragmentManager(), EditCategoryDialogFragment.TAG);
|
dialogFragment.show(requireActivity().getSupportFragmentManager(), EditCategoryDialogFragment.TAG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue