From 2de8d391bf43b8c9c992a2eab08cc41ef963cb52 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 23 Mar 2015 23:23:27 +0100 Subject: [PATCH] Unhide dialogs (fixes #289, #290). --- .../com/nutomic/syncthingandroid/activities/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java b/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java index 8b2f5a96..65e1ddb6 100644 --- a/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java +++ b/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java @@ -51,7 +51,7 @@ public class MainActivity extends SyncthingActivity @Override @SuppressLint("InflateParams") public void onApiChange(SyncthingService.State currentState) { - if (currentState != SyncthingService.State.ACTIVE && !isFinishing() && mIsDestroyed) { + if (currentState != SyncthingService.State.ACTIVE && !isFinishing() && !mIsDestroyed) { if (currentState == SyncthingService.State.DISABLED) { if (mLoadingDialog != null) { mLoadingDialog.dismiss();