From 966a3ed4ca90068e466715a6f29ff6fd1ffccd4d Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 5 Aug 2018 10:31:01 +0000 Subject: [PATCH] Fixed move loader --- .../main/java/eu/faircode/email/FragmentMessage.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessage.java b/app/src/main/java/eu/faircode/email/FragmentMessage.java index e4cb5a85..586df972 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessage.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessage.java @@ -418,7 +418,7 @@ public class FragmentMessage extends Fragment { private void onActionMove(final long id) { Bundle args = new Bundle(); args.putLong("id", id); - getLoaderManager().restartLoader(ActivityView.LOADER_MESSAGE_INIT, args, folderLoaderCallbacks).forceLoad(); + getLoaderManager().restartLoader(ActivityView.LOADER_MESSAGE_MOVE, args, moveLoaderCallbacks).forceLoad(); } private void onActionArchive(final long id) { @@ -518,10 +518,10 @@ public class FragmentMessage extends Fragment { boolean hasArchive; } - private static class FolderLoader extends AsyncTaskLoader> { + private static class MoveLoader extends AsyncTaskLoader> { private Bundle args; - FolderLoader(Context context) { + MoveLoader(Context context) { super(context); } @@ -559,14 +559,14 @@ public class FragmentMessage extends Fragment { } } - private LoaderManager.LoaderCallbacks folderLoaderCallbacks = new LoaderManager.LoaderCallbacks>() { + private LoaderManager.LoaderCallbacks moveLoaderCallbacks = new LoaderManager.LoaderCallbacks>() { Bundle args; @NonNull @Override public Loader> onCreateLoader(int id, Bundle args) { this.args = args; - FolderLoader loader = new FolderLoader(getContext()); + MoveLoader loader = new MoveLoader(getContext()); loader.setArgs(args); return loader; }