Merge pull request #11282 from osmandapp/Quick-action-list
Quick action list fix for show/hide for editable items
This commit is contained in:
commit
07ee3be474
1 changed files with 7 additions and 1 deletions
|
@ -593,7 +593,13 @@ public class QuickActionListFragment extends BaseOsmAndFragment
|
|||
List<QuickAction> actions = getQuickActions();
|
||||
int actionGlobalPosition = actions.indexOf(action);
|
||||
int actionPosition = actionGlobalPosition % ITEMS_IN_GROUP + 1;
|
||||
h.title.setText(action.getName(app));
|
||||
String name = action.getName(app);
|
||||
if (action.getActionNameRes() != 0 && !name.contains(getString(action.getActionNameRes()))) {
|
||||
String prefAction = getString(action.getActionNameRes());
|
||||
h.title.setText(getString(R.string.ltr_or_rtl_combine_via_dash, prefAction, action.getName(app)));
|
||||
} else {
|
||||
h.title.setText(name);
|
||||
}
|
||||
h.subTitle.setText(getResources().getString(R.string.quick_action_item_action, actionPosition));
|
||||
h.icon.setImageDrawable(getContentIcon(action.getIconRes(app)));
|
||||
|
||||
|
|
Loading…
Reference in a new issue