Merge pull request #9749 from osmandapp/show_hidden_folders
additional_text_show_up
This commit is contained in:
commit
a6c521167b
1 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,7 @@ import net.osmand.plus.R;
|
||||||
import net.osmand.plus.UiUtilities;
|
import net.osmand.plus.UiUtilities;
|
||||||
import net.osmand.plus.activities.MapActivity;
|
import net.osmand.plus.activities.MapActivity;
|
||||||
import net.osmand.plus.base.BaseOsmAndFragment;
|
import net.osmand.plus.base.BaseOsmAndFragment;
|
||||||
|
import net.osmand.plus.helpers.AndroidUiHelper;
|
||||||
import net.osmand.plus.helpers.ColorDialogs;
|
import net.osmand.plus.helpers.ColorDialogs;
|
||||||
import net.osmand.plus.mapcontextmenu.other.HorizontalSelectionAdapter;
|
import net.osmand.plus.mapcontextmenu.other.HorizontalSelectionAdapter;
|
||||||
import net.osmand.plus.widgets.FlowLayout;
|
import net.osmand.plus.widgets.FlowLayout;
|
||||||
|
@ -726,6 +727,7 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment {
|
||||||
public void setCategory(String name, int color) {
|
public void setCategory(String name, int color) {
|
||||||
setSelectedItemWithScroll(name);
|
setSelectedItemWithScroll(name);
|
||||||
updateColorSelector(color, groupRecyclerView.getRootView());
|
updateColorSelector(color, groupRecyclerView.getRootView());
|
||||||
|
AndroidUiHelper.updateVisibility(addToHiddenGroupInfo, !isCategoryVisible(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setSelectedItemWithScroll(String name) {
|
private void setSelectedItemWithScroll(String name) {
|
||||||
|
@ -952,7 +954,7 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment {
|
||||||
int previousSelectedPosition = getItemPosition(selectedItemName);
|
int previousSelectedPosition = getItemPosition(selectedItemName);
|
||||||
selectedItemName = items.get(holder.getAdapterPosition());
|
selectedItemName = items.get(holder.getAdapterPosition());
|
||||||
updateColorSelector(getCategoryColor(selectedItemName), groupRecyclerView.getRootView());
|
updateColorSelector(getCategoryColor(selectedItemName), groupRecyclerView.getRootView());
|
||||||
addToHiddenGroupInfo.setVisibility(isCategoryVisible(selectedItemName) ? View.GONE : View.VISIBLE);
|
AndroidUiHelper.updateVisibility(addToHiddenGroupInfo, !isCategoryVisible(selectedItemName));
|
||||||
notifyItemChanged(holder.getAdapterPosition());
|
notifyItemChanged(holder.getAdapterPosition());
|
||||||
notifyItemChanged(previousSelectedPosition);
|
notifyItemChanged(previousSelectedPosition);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue