Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cea98f75 authored by Stephen Bird's avatar Stephen Bird
Browse files

ProgressDialog: Require user to explicitly use the cancel button.

This prevents accidental touches outside of the dialog during long operations

Change-Id: I5d903a56aa8e72963967629bd4d844d19e3922dc
(cherry picked from commit 707e828f)
parent be658840
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ public class MessageProgressDialog implements DialogInterface.OnClickListener {
                                        titleResourceId,
                                        layout);
        this.mDialog.setCancelable(cancellable);
        this.mDialog.setCanceledOnTouchOutside(false);
        if (cancellable) {
            this.mDialog.setButton(
                    DialogInterface.BUTTON_NEUTRAL, context.getString(android.R.string.cancel), this);