From 29ae7614359166f9d34167727eaa4df1051cc069 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 3 Aug 2018 08:43:25 +0000 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/FragmentAccount.java | 2 +- app/src/main/java/eu/faircode/email/FragmentCompose.java | 6 +++--- app/src/main/java/eu/faircode/email/FragmentFolder.java | 2 +- app/src/main/java/eu/faircode/email/FragmentIdentity.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index 63d6e4aa..9ada05ae 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -292,7 +292,7 @@ public class FragmentAccount extends Fragment { @NonNull @Override public Loader onCreateLoader(int id, Bundle args) { - PutLoader loader = new PutLoader(getActivity()); + PutLoader loader = new PutLoader(getContext()); loader.setArgs(args); return loader; } diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index bd27fc87..59a2d2f5 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -395,7 +395,7 @@ public class FragmentCompose extends Fragment { @NonNull @Override public Loader 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 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 onCreateLoader(int id, Bundle args) { this.args = args; - PutLoader loader = new PutLoader(getActivity()); + PutLoader loader = new PutLoader(getContext()); loader.setArgs(args); return loader; } diff --git a/app/src/main/java/eu/faircode/email/FragmentFolder.java b/app/src/main/java/eu/faircode/email/FragmentFolder.java index e0f0a523..205cab18 100644 --- a/app/src/main/java/eu/faircode/email/FragmentFolder.java +++ b/app/src/main/java/eu/faircode/email/FragmentFolder.java @@ -134,7 +134,7 @@ public class FragmentFolder extends Fragment { @NonNull @Override public Loader onCreateLoader(int id, Bundle args) { - PutLoader loader = new PutLoader(getActivity()); + PutLoader loader = new PutLoader(getContext()); loader.setArgs(args); return loader; } diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java index 67e11bda..93986551 100644 --- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java +++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java @@ -267,7 +267,7 @@ public class FragmentIdentity extends Fragment { @NonNull @Override public Loader onCreateLoader(int id, Bundle args) { - PutLoader loader = new PutLoader(getActivity()); + PutLoader loader = new PutLoader(getContext()); loader.setArgs(args); return loader; }