From f3ebd286c4b5b2198011cefdc6cc8317c77dfd8c Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 13 Mar 2021 21:07:04 +1000 Subject: [PATCH] Android: Make progress dialogs non-cancelable --- .../com/github/stenzek/duckstation/AndroidProgressCallback.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/app/src/main/java/com/github/stenzek/duckstation/AndroidProgressCallback.java b/android/app/src/main/java/com/github/stenzek/duckstation/AndroidProgressCallback.java index a76f48f1d..a77b9b3b9 100644 --- a/android/app/src/main/java/com/github/stenzek/duckstation/AndroidProgressCallback.java +++ b/android/app/src/main/java/com/github/stenzek/duckstation/AndroidProgressCallback.java @@ -12,6 +12,8 @@ public class AndroidProgressCallback { public AndroidProgressCallback(Activity context) { mContext = context; mDialog = new ProgressDialog(context); + mDialog.setCancelable(false); + mDialog.setCanceledOnTouchOutside(false); mDialog.setMessage(context.getString(R.string.android_progress_callback_please_wait)); mDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); mDialog.setIndeterminate(false);