From c0b3192a5988439c4a769e781ee0f953fe26624b Mon Sep 17 00:00:00 2001 From: sergosm Date: Fri, 4 Sep 2020 15:43:52 +0300 Subject: [PATCH] additional_text_show_up --- .../plus/mapcontextmenu/editors/PointEditorFragmentNew.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/PointEditorFragmentNew.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/PointEditorFragmentNew.java index 4cf98456be..813aa9a0de 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/PointEditorFragmentNew.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/editors/PointEditorFragmentNew.java @@ -46,6 +46,7 @@ import net.osmand.plus.R; import net.osmand.plus.UiUtilities; import net.osmand.plus.activities.MapActivity; import net.osmand.plus.base.BaseOsmAndFragment; +import net.osmand.plus.helpers.AndroidUiHelper; import net.osmand.plus.helpers.ColorDialogs; import net.osmand.plus.mapcontextmenu.other.HorizontalSelectionAdapter; import net.osmand.plus.widgets.FlowLayout; @@ -726,6 +727,7 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment { public void setCategory(String name, int color) { setSelectedItemWithScroll(name); updateColorSelector(color, groupRecyclerView.getRootView()); + AndroidUiHelper.updateVisibility(addToHiddenGroupInfo, !isCategoryVisible(name)); } private void setSelectedItemWithScroll(String name) { @@ -952,7 +954,7 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment { int previousSelectedPosition = getItemPosition(selectedItemName); selectedItemName = items.get(holder.getAdapterPosition()); updateColorSelector(getCategoryColor(selectedItemName), groupRecyclerView.getRootView()); - addToHiddenGroupInfo.setVisibility(isCategoryVisible(selectedItemName) ? View.GONE : View.VISIBLE); + AndroidUiHelper.updateVisibility(addToHiddenGroupInfo, !isCategoryVisible(selectedItemName)); notifyItemChanged(holder.getAdapterPosition()); notifyItemChanged(previousSelectedPosition); }