mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
The dialog now cannot be ignored by tapping a zone outside it
This commit is contained in:
parent
8b883c88fc
commit
d3570958e9
1 changed files with 6 additions and 1 deletions
|
|
@ -32,7 +32,12 @@ public class ServerUnreachableDialog extends DialogFragment {
|
||||||
.setNeutralButton(R.string.server_unreachable_dialog_neutral_button, (dialog, id) -> { })
|
.setNeutralButton(R.string.server_unreachable_dialog_neutral_button, (dialog, id) -> { })
|
||||||
.setNegativeButton(R.string.server_unreachable_dialog_negative_button, (dialog, id) -> dialog.cancel());
|
.setNegativeButton(R.string.server_unreachable_dialog_negative_button, (dialog, id) -> dialog.cancel());
|
||||||
|
|
||||||
return builder.create();
|
AlertDialog popup = builder.create();
|
||||||
|
|
||||||
|
popup.setCancelable(false);
|
||||||
|
popup.setCanceledOnTouchOutside(false);
|
||||||
|
|
||||||
|
return popup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue