mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-16 03:45:46 -04:00
Android: Make progress dialogs non-cancelable
This commit is contained in:
@ -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