Android: Make progress dialogs non-cancelable

This commit is contained in:
Connor McLaughlin 2021-03-13 21:07:04 +10:00
parent 28e52e53e7
commit f3ebd286c4

View file

@ -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);