Browse Source

Small improvement

main
M66B 6 years ago
parent
commit
29ae761435
4 changed files with 6 additions and 6 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentAccount.java
  2. +3
    -3
      app/src/main/java/eu/faircode/email/FragmentCompose.java
  3. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentFolder.java
  4. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentIdentity.java

+ 1
- 1
app/src/main/java/eu/faircode/email/FragmentAccount.java View File

@ -292,7 +292,7 @@ public class FragmentAccount extends Fragment {
@NonNull
@Override
public Loader<Throwable> onCreateLoader(int id, Bundle args) {
PutLoader loader = new PutLoader(getActivity());
PutLoader loader = new PutLoader(getContext());
loader.setArgs(args);
return loader;
}


+ 3
- 3
app/src/main/java/eu/faircode/email/FragmentCompose.java View File

@ -395,7 +395,7 @@ public class FragmentCompose extends Fragment {
@NonNull
@Override
public Loader<Bundle> onCreateLoader(int id, @Nullable Bundle args) {
GetLoader loader = new GetLoader(getActivity());
GetLoader loader = new GetLoader(getContext());
loader.setArgs(args);
return loader;
}
@ -502,7 +502,7 @@ public class FragmentCompose extends Fragment {
@NonNull
@Override
public Loader<Throwable> onCreateLoader(int id, @Nullable Bundle args) {
DeleteLoader loader = new DeleteLoader(getActivity());
DeleteLoader loader = new DeleteLoader(getContext());
loader.setArgs(args);
return loader;
}
@ -646,7 +646,7 @@ public class FragmentCompose extends Fragment {
@Override
public Loader<Throwable> onCreateLoader(int id, Bundle args) {
this.args = args;
PutLoader loader = new PutLoader(getActivity());
PutLoader loader = new PutLoader(getContext());
loader.setArgs(args);
return loader;
}


+ 1
- 1
app/src/main/java/eu/faircode/email/FragmentFolder.java View File

@ -134,7 +134,7 @@ public class FragmentFolder extends Fragment {
@NonNull
@Override
public Loader<Throwable> onCreateLoader(int id, Bundle args) {
PutLoader loader = new PutLoader(getActivity());
PutLoader loader = new PutLoader(getContext());
loader.setArgs(args);
return loader;
}


+ 1
- 1
app/src/main/java/eu/faircode/email/FragmentIdentity.java View File

@ -267,7 +267,7 @@ public class FragmentIdentity extends Fragment {
@NonNull
@Override
public Loader<Throwable> onCreateLoader(int id, Bundle args) {
PutLoader loader = new PutLoader(getActivity());
PutLoader loader = new PutLoader(getContext());
loader.setArgs(args);
return loader;
}


Loading…
Cancel
Save