[Settings] Avoid from close dialog when touch outside.

Roaming confirmation dialog might get closed when touch outside,
which is easily been triggered when having a large screen.

Solution: avoid from close dialog when touch outside of dialog area.

Bug: 235183999
Test: local
Change-Id: Ic312d80e6f04cb8f323ebc713eef4e15257de358
This commit is contained in:
Bonian Chen
2022-06-13 20:55:32 +08:00
parent 1c45e9ad72
commit 03da62810c

View File

@@ -72,7 +72,9 @@ public class RoamingDialogFragment extends InstrumentedDialogFragment implements
.setIconAttribute(android.R.attr.alertDialogIcon)
.setPositiveButton(android.R.string.yes, this)
.setNegativeButton(android.R.string.no, this);
return builder.create();
AlertDialog dialog = builder.create();
dialog.setCanceledOnTouchOutside(false);
return dialog;
}
@Override