diff options
author | campbeb <bpcampbell@gmail.com> | 2012-06-30 09:06:24 +0900 |
---|---|---|
committer | campbeb <bpcampbell@gmail.com> | 2012-06-30 09:06:24 +0900 |
commit | c26de73288f4deaa1d5affe02dce388b2fb21030 (patch) | |
tree | d2abf63625ec7d951332b0781d79f29fb2371def /main/src/cgeo/geocaching/activity | |
parent | 46dff33397a4f71578cdb921b64e120a2994a997 (diff) | |
download | cgeo-c26de73288f4deaa1d5affe02dce388b2fb21030.zip cgeo-c26de73288f4deaa1d5affe02dce388b2fb21030.tar.gz cgeo-c26de73288f4deaa1d5affe02dce388b2fb21030.tar.bz2 |
Don't cancel progress dialog when clicking outside
Diffstat (limited to 'main/src/cgeo/geocaching/activity')
-rw-r--r-- | main/src/cgeo/geocaching/activity/Progress.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/activity/Progress.java b/main/src/cgeo/geocaching/activity/Progress.java index dbe4700..7a1995d 100644 --- a/main/src/cgeo/geocaching/activity/Progress.java +++ b/main/src/cgeo/geocaching/activity/Progress.java @@ -27,6 +27,7 @@ public class Progress { dialog = ProgressDialog.show(context, title, message, indeterminate, cancelMessage != null); dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); dialog.setProgress(0); + dialog.setCanceledOnTouchOutside(false); this.progress = 0; if (cancelMessage != null) { dialog.setCancelMessage(cancelMessage); @@ -38,6 +39,7 @@ public class Progress { if (dialog == null) { dialog = new ProgressDialog(context); dialog.setProgress(0); + dialog.setCanceledOnTouchOutside(false); this.progress = 0; dialog.setTitle(title); dialog.setMessage(message); |