Minor fix
This commit is contained in:
parent
2316c10487
commit
08cd0db152
1 changed files with 4 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue