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

[ModalDialog] Fix cancel on touch outside not initalized

Bug: 905248
Change-Id: Iab5d219feccbb265c72a83770d3a48bc368e2d10
Reviewed-on: https://chromium-review.googlesource.com/c/1336032Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608044}
parent f6d25560
......@@ -199,6 +199,7 @@ public class ModalDialogView implements View.OnClickListener {
setTitleScrollable(mParams.titleScrollable);
setMessage(mParams.message);
setCustomView(mParams.customView);
setCancelOnTouchOutside(mParams.cancelOnTouchOutside);
Resources resources = mDialogView.getResources();
assert(mParams.positiveButtonTextId == 0 || mParams.positiveButtonText == null);
......
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