Commit 21ae0d26 authored by Hesen Zhang's avatar Hesen Zhang Committed by Commit Bot

[Download-Rename] extension dialog content change.

- Change the dialog title.

Bug: 1020283
Change-Id: I794834076f17bf95880f737f30598a4bc234f9fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894172
Commit-Queue: Hesen Zhang <hesen@chromium.org>
Reviewed-by: default avatarShakti Sahu <shaktisahu@chromium.org>
Reviewed-by: default avatarHesen Zhang <hesen@chromium.org>
Auto-Submit: Hesen Zhang <hesen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711500}
parent 96baf888
......@@ -11,12 +11,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="@string/rename_extension_confirmation"/>
<TextView
android:id="@+id/error_message"
android:layout_width="match_parent"
......
......@@ -8,6 +8,7 @@ import android.view.LayoutInflater;
import android.widget.ScrollView;
import org.chromium.base.Callback;
import org.chromium.chrome.download.R;
import org.chromium.ui.modaldialog.DialogDismissalCause;
import org.chromium.ui.modaldialog.ModalDialogManager;
import org.chromium.ui.modaldialog.ModalDialogProperties;
......@@ -36,12 +37,12 @@ final class RenameExtensionDialogCoordinator {
.with(ModalDialogProperties.CONTROLLER,
new RenameExtensionDialogController())
.with(ModalDialogProperties.TITLE,
context.getString(org.chromium.chrome.download.R.string.rename))
context.getString(R.string.rename_extension_confirmation))
.with(ModalDialogProperties.CUSTOM_VIEW, mRenameExtensionDialogCustomView)
.with(ModalDialogProperties.POSITIVE_BUTTON_TEXT, context.getResources(),
org.chromium.chrome.download.R.string.confirm)
R.string.confirm)
.with(ModalDialogProperties.NEGATIVE_BUTTON_TEXT, context.getResources(),
org.chromium.chrome.download.R.string.cancel)
R.string.cancel)
.build();
mOnClickEventCallback = onClickCallback;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment