Fix local name in favorite point menu controller
This commit is contained in:
parent
0963cd00f7
commit
1146dc2dea
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue