Skip to content

Commit

Permalink
apacheGH-28 Progress dialogs should be cancellable outside the window
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Clark authored and Christopher J. Brody committed Oct 3, 2018
1 parent 0057715 commit 79afd20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/android/Notification.java
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ public void run() {
notification.progressDialog.setCancelable(true);
notification.progressDialog.setMax(100);
notification.progressDialog.setProgress(0);
notification.progressDialog.setCanceledOnTouchOutside(false);
notification.progressDialog.setOnCancelListener(
new DialogInterface.OnCancelListener() {
public void onCancel(DialogInterface dialog) {
Expand Down

0 comments on commit 79afd20

Please sign in to comment.