mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-05 08:33:07 +00:00
The dialog now cannot be ignored by tapping a zone outside it
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user