Refactoring

This commit is contained in:
M66B
2023-11-18 09:58:29 +01:00
parent 98195890cb
commit 658a484e4f
5 changed files with 16 additions and 16 deletions

View File

@@ -3733,7 +3733,7 @@ public class FragmentCompose extends FragmentBase {
pgpLoader.serial().execute(this, args, "compose:pgp");
}
private final SimpleTask<Object> pgpLoader = new LoaderComposePgp() {
private final SimpleTask<Object> pgpLoader = new TaskComposePgp() {
@Override
protected void onPreExecute(Bundle args) {
setBusy(true);
@@ -3804,7 +3804,7 @@ public class FragmentCompose extends FragmentBase {
sMimeLoader.serial().execute(this, args, "compose:s/mime");
}
private final SimpleTask<Void> sMimeLoader = new LoaderComposeSMime() {
private final SimpleTask<Void> sMimeLoader = new TaskComposeSMime() {
@Override
protected void onPreExecute(Bundle args) {
setBusy(true);
@@ -4259,10 +4259,10 @@ public class FragmentCompose extends FragmentBase {
args.putBundle("extras", extras);
Log.i("Run execute id=" + working + " reason=" + reason);
actionLoader.execute(this, args, "compose:action:" + LoaderComposeAction.getActionName(action));
actionLoader.execute(this, args, "compose:action:" + TaskComposeAction.getActionName(action));
}
private final SimpleTask<ComposeHelper.DraftData> draftLoader = new LoaderComposeDraft() {
private final SimpleTask<ComposeHelper.DraftData> draftLoader = new TaskComposeDraft() {
@Override
protected void onExecuted(Bundle args, final ComposeHelper.DraftData data) {
final String action = getArguments().getString("action");
@@ -4614,7 +4614,7 @@ public class FragmentCompose extends FragmentBase {
}
}.serial();
private final SimpleTask<EntityMessage> actionLoader = new LoaderComposeAction() {
private final SimpleTask<EntityMessage> actionLoader = new TaskComposeAction() {
@Override
protected void onPreExecute(Bundle args) {
if (args.getBundle("extras").getBoolean("silent"))
@@ -4653,7 +4653,7 @@ public class FragmentCompose extends FragmentBase {
boolean needsEncryption = args.getBoolean("needsEncryption");
int action = args.getInt("action");
Log.i("Loaded action id=" + draft.id +
" action=" + LoaderComposeAction.getActionName(action) + " encryption=" + needsEncryption);
" action=" + TaskComposeAction.getActionName(action) + " encryption=" + needsEncryption);
int toPos = etTo.getSelectionStart();
int ccPos = etCc.getSelectionStart();