aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-02-27 23:22:53 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-02-27 23:22:53 +0100
commit57fffc6e3af2ddd8ec61482370265142d94561af (patch)
treec78081171a1c9e480980e89fdd747cbfc509345c /main
parent0633e0813a6f84d2fa52dd0c26db8f736dacfeb9 (diff)
parent38e04c459383c1563a70f8086312c1b29ae0cc36 (diff)
downloadcgeo-57fffc6e3af2ddd8ec61482370265142d94561af.zip
cgeo-57fffc6e3af2ddd8ec61482370265142d94561af.tar.gz
cgeo-57fffc6e3af2ddd8ec61482370265142d94561af.tar.bz2
Merge branch 'release' into upstream
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/activity/Progress.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/activity/Progress.java b/main/src/cgeo/geocaching/activity/Progress.java
index 5fc64f2..2710023 100644
--- a/main/src/cgeo/geocaching/activity/Progress.java
+++ b/main/src/cgeo/geocaching/activity/Progress.java
@@ -39,7 +39,7 @@ public class Progress {
}
public synchronized void show(final Context context, final String title, final String message, final boolean indeterminate, final Message cancelMessage) {
- if (dialog == null) {
+ if (!isShowing()) {
createProgressDialog(context, title, message, cancelMessage);
dialog.setIndeterminate(indeterminate);
dialog.show();
@@ -47,7 +47,7 @@ public class Progress {
}
public synchronized void show(final Context context, final String title, final String message, final int style, final Message cancelMessage) {
- if (dialog == null) {
+ if (!isShowing()) {
createProgressDialog(context, title, message, cancelMessage);
dialog.setProgressStyle(style);
dialog.show();