Merge "[Network Connection] Correct canceling dialog behavior"
This commit is contained in:
committed by
Android (Google) Code Review
commit
7370aaa282
@@ -138,9 +138,9 @@ public class NetworkRequestDialogFragment extends InstrumentedDialogFragment imp
|
||||
.setOnItemClickListener(
|
||||
(parent, view, position, id) -> this.onClick(dialog, position));
|
||||
|
||||
// Don't dismiss dialog when touching outside. User report it is easy to touch outside.
|
||||
// This causes dialog to close. Which is concerned as a bad UX (b/128877712).
|
||||
dialog.setCanceledOnTouchOutside(false);
|
||||
// Don't dismiss dialog when touching outside. User reports it is easy to touch outside.
|
||||
// This causes dialog to close.
|
||||
setCancelable(false);
|
||||
|
||||
dialog.setOnShowListener((dialogInterface) -> {
|
||||
// Replace NeutralButton onClickListener to avoid closing dialog
|
||||
|
Reference in New Issue
Block a user