private void updateAction(int position) {
    GuidedAction action = mActions.get(position);
    action.setLabel2(mPrefs.get(position).getSubtitle());
    mActions.set(position, action);

    super.onCreateActions(mActions, null);
  }
  @Override
  public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) {

    int index = 0;
    mPrefs = PreferencesHandler.ItemsGenerator.generate(getActivity(), this, true);

    for (PrefItem item : mPrefs) {
      actions.add(generateAction(index, item));
      index++;
    }

    mActions = actions;

    super.onCreateActions(actions, savedInstanceState);
  }