From 401310d74d21fc63e244eb3dddd427030d229ff3 Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Fri, 17 Jan 2025 19:45:34 +0530 Subject: [PATCH] Make dialogs non-cancelable on Android. --- .../java/lib/src/org/godotengine/godot/utils/DialogUtils.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/android/java/lib/src/org/godotengine/godot/utils/DialogUtils.kt b/platform/android/java/lib/src/org/godotengine/godot/utils/DialogUtils.kt index 45ec72b7433..67538bacd4d 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/utils/DialogUtils.kt +++ b/platform/android/java/lib/src/org/godotengine/godot/utils/DialogUtils.kt @@ -151,6 +151,7 @@ internal class DialogUtils { builder.setView(parentLayout) val dialog = builder.create() dismissDialog = {dialog.dismiss()} + dialog.setCancelable(false) dialog.show() } } @@ -178,6 +179,7 @@ internal class DialogUtils { dialog.dismiss() } val dialog = builder.create() + dialog.setCancelable(false) dialog.show() } }