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);
|
null, false);
|
||||||
TextView title = itemView.findViewById(R.id.title);
|
TextView title = itemView.findViewById(R.id.title);
|
||||||
ImageView icon = itemView.findViewById(R.id.image);
|
ImageView icon = itemView.findViewById(R.id.image);
|
||||||
String message;
|
|
||||||
if (action.getActionNameRes() != 0) {
|
if (action.getActionNameRes() != 0) {
|
||||||
String showHide = getResources().getString(action.getActionNameRes());
|
String name = getString(action.getNameRes());
|
||||||
String nameAction = getResources().getString(action.getNameRes());
|
String actionName = getString(action.getActionNameRes());
|
||||||
message = getResources().getString(R.string.ltr_or_rtl_combine_via_dash, showHide, nameAction);
|
title.setText(getString(R.string.ltr_or_rtl_combine_via_dash, actionName, name));
|
||||||
} else {
|
} else {
|
||||||
message = getResources().getString(action.getNameRes());
|
title.setText(action.getNameRes());
|
||||||
}
|
}
|
||||||
title.setText(message);
|
|
||||||
icon.setImageResource(action.getIconRes());
|
icon.setImageResource(action.getIconRes());
|
||||||
items.add(new BaseBottomSheetItem.Builder()
|
items.add(new BaseBottomSheetItem.Builder()
|
||||||
.setCustomView(itemView)
|
.setCustomView(itemView)
|
||||||
|
|
Loading…
Reference in a new issue