From 08cd0db15204b7760c133d529bcc338841a305a4 Mon Sep 17 00:00:00 2001 From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com> Date: Thu, 4 Mar 2021 15:07:31 +0200 Subject: [PATCH] Minor fix --- .../osmand/plus/quickaction/AddQuickActionDialog.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/quickaction/AddQuickActionDialog.java b/OsmAnd/src/net/osmand/plus/quickaction/AddQuickActionDialog.java index c36e666457..9183338021 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/AddQuickActionDialog.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/AddQuickActionDialog.java @@ -53,15 +53,13 @@ public class AddQuickActionDialog extends MenuBottomSheetDialogFragment { null, false); TextView title = itemView.findViewById(R.id.title); ImageView icon = itemView.findViewById(R.id.image); - String message; if (action.getActionNameRes() != 0) { - String showHide = getResources().getString(action.getActionNameRes()); - String nameAction = getResources().getString(action.getNameRes()); - message = getResources().getString(R.string.ltr_or_rtl_combine_via_dash, showHide, nameAction); + String name = getString(action.getNameRes()); + String actionName = getString(action.getActionNameRes()); + title.setText(getString(R.string.ltr_or_rtl_combine_via_dash, actionName, name)); } else { - message = getResources().getString(action.getNameRes()); + title.setText(action.getNameRes()); } - title.setText(message); icon.setImageResource(action.getIconRes()); items.add(new BaseBottomSheetItem.Builder() .setCustomView(itemView)