Fix local name in favorite point menu controller

This commit is contained in:
Dima-1 2020-01-09 12:47:35 +02:00
parent 0963cd00f7
commit 1146dc2dea

View file

@ -129,6 +129,17 @@ public class FavouritePointMenuController extends MenuController {
return mapMarker == null; return mapMarker == null;
} }
@NonNull
@Override
public String getNameStr() {
MapActivity mapActivity = getMapActivity();
if (mapActivity != null) {
return fav.getDisplayName(getMapActivity());
} else {
return super.getNameStr();
}
}
@Override @Override
public Drawable getSecondLineTypeIcon() { public Drawable getSecondLineTypeIcon() {
return getIcon(R.drawable.ic_action_group_name_16, isLight() ? R.color.icon_color_default_light : R.color.ctx_menu_bottom_view_icon_dark); return getIcon(R.drawable.ic_action_group_name_16, isLight() ? R.color.icon_color_default_light : R.color.ctx_menu_bottom_view_icon_dark);