Source:
<code>private void setUpTasks() { EditTask titleDescriptionEditTask = new EditTask(); titleDescriptionEditTask.setTitle(getString(R.string.title_description_task_title)); titleDescriptionEditTask.setDescription(getString(R.string.title_description_task_description)); titleDescriptionEditTask.setImagePlaceHolderShown(false); titleDescriptionEditTask.setTextPlaceHolderShown(true); titleDescriptionEditTask.setNoActionLayout(true); tasks.add(titleDescriptionEditTask); EditTask imageCaptionEditTask = new EditTask(); imageCaptionEditTask.setTitle(getString(R.string.image_caption_task_title)); imageCaptionEditTask.setDescription(getString(R.string.image_caption_task_description)); imageCaptionEditTask.setImagePlaceHolderShown(true); imageCaptionEditTask.setTextPlaceHolderShown(true); imageCaptionEditTask.setDisabled(true); imageCaptionEditTask.setDisabledDescriptionText(getString(R.string.image_caption_edit_disable_text)); tasks.add(imageCaptionEditTask); if (Prefs.showMultilingualTask()) { <START> EditTask multilingualTask = new EditTask(); <END> multilingualTask.setTitle(getString(R.string.multilingual_task_title)); multilingualTask.setDescription(getString(R.string.multilingual_task_description)); multilingualTask.setImagePlaceHolderShown(false); multilingualTask.setTextPlaceHolderShown(false); multilingualTask.setNoActionLayout(false); multilingualTask.setEnabledPositiveActionString(getString(R.string.task_positive_string)); multilingualTask.setEnabledNegativeActionString(getString(R.string.task_negative_string)); tasks.add(multilingualTask); } }</code><technical_language>Link "Add language" button WikipediaLanguagesActivity</technical_language>

Target:
private void setUpTasks() { EditTask titleDescriptionEditTask = new EditTask(); titleDescriptionEditTask.setTitle(getString(R.string.title_description_task_title)); titleDescriptionEditTask.setDescription(getString(R.string.title_description_task_description)); titleDescriptionEditTask.setImagePlaceHolderShown(false); titleDescriptionEditTask.setTextPlaceHolderShown(true); titleDescriptionEditTask.setNoActionLayout(true); tasks.add(titleDescriptionEditTask); callbacks.add(null); EditTask imageCaptionEditTask = new EditTask(); imageCaptionEditTask.setTitle(getString(R.string.image_caption_task_title)); imageCaptionEditTask.setDescription(getString(R.string.image_caption_task_description)); imageCaptionEditTask.setImagePlaceHolderShown(true); imageCaptionEditTask.setTextPlaceHolderShown(true); imageCaptionEditTask.setDisabled(true); imageCaptionEditTask.setDisabledDescriptionText(getString(R.string.image_caption_edit_disable_text)); tasks.add(imageCaptionEditTask); callbacks.add(null); if (Prefs.showMultilingualTask()) { EditTask multilingualTask = new EditTask(); multilingualTask.setTitle(getString(R.string.multilingual_task_title)); multilingualTask.setDescription(getString(R.string.multilingual_task_description)); multilingualTask.setImagePlaceHolderShown(false); multilingualTask.setTextPlaceHolderShown(false); multilingualTask.setNoActionLayout(false); multilingualTask.setEnabledPositiveActionString(getString(R.string.task_positive_string)); multilingualTask.setEnabledNegativeActionString(getString(R.string.task_negative_string)); tasks.add(multilingualTask); callbacks.add(new EditTaskView.Callback() { @Override public void onPositiveActionClick() { requireActivity().startActivityForResult(WikipediaLanguagesActivity.newIntent(requireActivity(), LanguageSettingsInvokeSource.DESCRIPTION_EDITING.text()), ACTIVITY_REQUEST_ADD_A_LANGUAGE); } @Override public void onNegativeActionClick() { int multilingualTaskPosition = tasks.indexOf(multilingualTask); tasks.remove(multilingualTask); tasksRecyclerView.getAdapter().notifyItemChanged(multilingualTaskPosition); Prefs.setShowMultilingualTask(false); } @Override public void onViewClick() { } }); } }