Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbca7696 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 4887033 - android.app.cts.AlertDialog_BuilderTest#testDisableCancelable

Change-Id: I659201124c4c6730046be55a918c64ca57a9f4db
parent d9b0ee02
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -890,7 +890,10 @@ public class AlertDialog extends Dialog implements DialogInterface {
        public AlertDialog create() {
            final AlertDialog dialog = new AlertDialog(P.mContext, mTheme, false);
            P.apply(dialog.mAlert);
            dialog.setCanceledOnTouchOutside(P.mCancelable);
            dialog.setCancelable(P.mCancelable);
            if (P.mCancelable) {
                dialog.setCanceledOnTouchOutside(true);
            }
            dialog.setOnCancelListener(P.mOnCancelListener);
            if (P.mOnKeyListener != null) {
                dialog.setOnKeyListener(P.mOnKeyListener);