From db7927c0da2e8041851b4f423f4e63809f07f3cf Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 14 Jun 2022 13:37:28 +0200 Subject: [PATCH] Fixed move to folder --- .../java/eu/faircode/email/FragmentMessages.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 3d87800283..7008be7237 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -6890,14 +6890,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. @Override protected void onExecuted(Bundle args, Void data) { - if (viewType == AdapterMessage.ViewType.THREAD) { - PagedList messages = adapter.getCurrentList(); - if (messages != null && result.size() > 0) { - Log.i("Eval undo messages=" + messages.size() + " targets=" + result.size()); - handleThreadActions(messages, result, null); - } - } - FragmentActivity activity = getActivity(); if (!(activity instanceof ActivityView)) { Log.i("Undo: activity missing"); @@ -6906,6 +6898,14 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. String title = getString(R.string.title_move_undo, getNames(result, true), result.size()); ((ActivityView) activity).undo(title, args, taskUndoMove, taskUndoShow); + + if (viewType == AdapterMessage.ViewType.THREAD) { + PagedList messages = adapter.getCurrentList(); + if (messages != null && result.size() > 0) { + Log.i("Eval undo messages=" + messages.size() + " targets=" + result.size()); + handleThreadActions(messages, result, null); + } + } } @Override