From 5278a8ca00cd7fb0979aa3bbc5d33b2534fb5999 Mon Sep 17 00:00:00 2001 From: Lode Hoste Date: Wed, 25 Mar 2015 17:14:19 +0100 Subject: [PATCH] Clear dialog reference when dismissed (fixes #305). --- .../com/nutomic/syncthingandroid/activities/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java b/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java index cf24837b..734bc919 100644 --- a/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java +++ b/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java @@ -55,6 +55,7 @@ public class MainActivity extends SyncthingActivity if (currentState == SyncthingService.State.DISABLED) { if (mLoadingDialog != null) { mLoadingDialog.dismiss(); + mLoadingDialog = null; } mDisabledDialog = SyncthingService.showDisabledDialog(this); } else if (mLoadingDialog == null) {