Browse Source

Fixed move loader

main
M66B 6 years ago
parent
commit
966a3ed4ca
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      app/src/main/java/eu/faircode/email/FragmentMessage.java

+ 5
- 5
app/src/main/java/eu/faircode/email/FragmentMessage.java View File

@ -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<List<EntityFolder>> {
private static class MoveLoader extends AsyncTaskLoader<List<EntityFolder>> {
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<List<EntityFolder>>() {
private LoaderManager.LoaderCallbacks moveLoaderCallbacks = new LoaderManager.LoaderCallbacks<List<EntityFolder>>() {
Bundle args;
@NonNull
@Override
public Loader<List<EntityFolder>> onCreateLoader(int id, Bundle args) {
this.args = args;
FolderLoader loader = new FolderLoader(getContext());
MoveLoader loader = new MoveLoader(getContext());
loader.setArgs(args);
return loader;
}


Loading…
Cancel
Save