This commit is contained in:
androiddevkotlin 2021-03-25 14:02:30 +02:00
parent 2c43cf8b93
commit 5d3e7fd0d2

View file

@ -223,13 +223,11 @@ public class CreateEditActionDialog extends DialogFragment
if (savedInstanceState == null) { if (savedInstanceState == null) {
String name = action.getName(getContext()); String name = action.getName(getContext());
if (action.getActionNameRes() != 0 && !action.isActionEditable()) { if (action.getActionNameRes() != 0 && !action.isActionEditable()) {
String actionName; if (!name.contains(getString(R.string.quick_action_show_hide_title))) {
if (getString(action.getActionNameRes()).contains("Show/hide")) { String actionName = getString(action.getActionNameRes());
actionName = getString(action.getActionNameRes());
nameEditText.setText(getString(R.string.ltr_or_rtl_combine_via_dash, actionName, name)); nameEditText.setText(getString(R.string.ltr_or_rtl_combine_via_dash, actionName, name));
} else { } else {
actionName = ""; nameEditText.setText(name);
nameEditText.setText(getString(R.string.ltr_or_rtl_combine_via_space, actionName, name));
} }
} else { } else {
nameEditText.setText(name); nameEditText.setText(name);