Fix fav string

This commit is contained in:
PavelRatushny 2017-12-07 13:36:00 +02:00
parent 4b27954540
commit 434a7322dd
2 changed files with 2 additions and 1 deletions

View file

@ -703,7 +703,7 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL
public int getFavActionStringId() { public int getFavActionStringId() {
if (menuController != null) if (menuController != null)
return menuController.getFavActionStringId(); return menuController.getFavActionStringId();
return R.string.favourites_context_menu_add; return R.string.shared_string_add;
} }
public int getWaypointActionIconId() { public int getWaypointActionIconId() {

View file

@ -401,6 +401,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
imageFavorite.setImageDrawable(getIcon(menu.getFavActionIconId(), imageFavorite.setImageDrawable(getIcon(menu.getFavActionIconId(),
R.color.ctx_menu_buttons_icon_color)); R.color.ctx_menu_buttons_icon_color));
imageFavorite.setContentDescription(getString(menu.getFavActionStringId())); imageFavorite.setContentDescription(getString(menu.getFavActionStringId()));
((TextView) view.findViewById(R.id.context_menu_fav_text_view)).setText(menu.getFavActionStringId());
View favView = view.findViewById(R.id.context_menu_fav_view); View favView = view.findViewById(R.id.context_menu_fav_view);
AndroidUtils.setDashButtonBackground(getMapActivity(), favView, nightMode); AndroidUtils.setDashButtonBackground(getMapActivity(), favView, nightMode);
favView.setOnClickListener(new View.OnClickListener() { favView.setOnClickListener(new View.OnClickListener() {