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(
|
.setOnItemClickListener(
|
||||||
(parent, view, position, id) -> this.onClick(dialog, position));
|
(parent, view, position, id) -> this.onClick(dialog, position));
|
||||||
|
|
||||||
// Don't dismiss dialog when touching outside. User report it is easy to touch outside.
|
// Don't dismiss dialog when touching outside. User reports it is easy to touch outside.
|
||||||
// This causes dialog to close. Which is concerned as a bad UX (b/128877712).
|
// This causes dialog to close.
|
||||||
dialog.setCanceledOnTouchOutside(false);
|
setCancelable(false);
|
||||||
|
|
||||||
dialog.setOnShowListener((dialogInterface) -> {
|
dialog.setOnShowListener((dialogInterface) -> {
|
||||||
// Replace NeutralButton onClickListener to avoid closing dialog
|
// Replace NeutralButton onClickListener to avoid closing dialog
|
||||||
|
Reference in New Issue
Block a user