[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:
@@ -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
|
||||
|
Reference in New Issue
Block a user