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

Fix cancel on touch outside in AppModalPresenter

Bug: 924877
Change-Id: Iacc7dbca1c2166cc9219ebaa4153ab0e52546053
Reviewed-on: https://chromium-review.googlesource.com/c/1435494Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#626143}
parent 189654fd
...@@ -44,7 +44,9 @@ public class AppModalPresenter extends ModalDialogManager.Presenter { ...@@ -44,7 +44,9 @@ public class AppModalPresenter extends ModalDialogManager.Presenter {
mDialog = new Dialog(mContext, R.style.ModalDialogTheme); mDialog = new Dialog(mContext, R.style.ModalDialogTheme);
mDialog.setOnCancelListener(dialogInterface mDialog.setOnCancelListener(dialogInterface
-> dismissCurrentDialog(DialogDismissalCause.NAVIGATE_BACK_OR_TOUCH_OUTSIDE)); -> dismissCurrentDialog(DialogDismissalCause.NAVIGATE_BACK_OR_TOUCH_OUTSIDE));
// Cancel on touch outside should be disabled by default. The ModelChangeProcessor wouldn't
// notify change if the property is not set during initialization.
mDialog.setCanceledOnTouchOutside(false);
ModalDialogView dialogView = (ModalDialogView) LayoutInflater.from(mDialog.getContext()) ModalDialogView dialogView = (ModalDialogView) LayoutInflater.from(mDialog.getContext())
.inflate(R.layout.modal_dialog_view, null); .inflate(R.layout.modal_dialog_view, null);
mModelChangeProcessor = mModelChangeProcessor =
......
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