Android: Make progress dialogs non-cancelable
This commit is contained in:
1 parent
28e52e53e7
commit
f3ebd286c4
1 file changed
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user