From 3a087071f9c01ef4cc43b0a211cb08ff472d51bb Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 24 Mar 2020 15:22:55 +0100 Subject: [PATCH] Oops --- app/src/main/java/eu/faircode/email/SimpleTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/SimpleTask.java b/app/src/main/java/eu/faircode/email/SimpleTask.java index 2727e5ff62..2765c581ca 100644 --- a/app/src/main/java/eu/faircode/email/SimpleTask.java +++ b/app/src/main/java/eu/faircode/email/SimpleTask.java @@ -84,7 +84,7 @@ public abstract class SimpleTask implements LifecycleObserver { public void execute(final Fragment fragment, @NonNull Bundle args, @NonNull String name) { try { - if (fragment.getView() != null) + if (fragment.getView() != null || fragment instanceof FragmentDialogBase) run(fragment.getContext(), fragment.getViewLifecycleOwner(), args, name); } catch (IllegalStateException ex) { Log.e(ex);