Commit f3832e54 authored by Becky Zhou's avatar Becky Zhou Committed by Commit Bot

[ModalDialog] Fix modal dialog button having the wrong text

Bug: 904471
Change-Id: I0080d11d52d311f7901e1953dc98e9e7bcc25d67
Reviewed-on: https://chromium-review.googlesource.com/c/1343278Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609452}
parent 6816d15f
...@@ -214,7 +214,7 @@ public class ModalDialogView implements View.OnClickListener { ...@@ -214,7 +214,7 @@ public class ModalDialogView implements View.OnClickListener {
setButtonText(ButtonType.NEGATIVE, resources.getString(mParams.negativeButtonTextId)); setButtonText(ButtonType.NEGATIVE, resources.getString(mParams.negativeButtonTextId));
mNegativeButton.setOnClickListener(this); mNegativeButton.setOnClickListener(this);
} else if (mParams.negativeButtonText != null) { } else if (mParams.negativeButtonText != null) {
setButtonText(ButtonType.POSITIVE, mParams.negativeButtonText); setButtonText(ButtonType.NEGATIVE, mParams.negativeButtonText);
} }
} }
......
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