mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Serialize encrypt actions
This commit is contained in:
parent
9ceab0d08e
commit
a9f12de3da
1 changed files with 5 additions and 2 deletions
|
@ -180,6 +180,7 @@ import java.util.Locale;
|
|||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Properties;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import javax.activation.DataHandler;
|
||||
|
@ -305,6 +306,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
private static final int REQUEST_SEND = 14;
|
||||
private static final int REQUEST_PERMISSION = 15;
|
||||
|
||||
private static ExecutorService executor = Helper.getBackgroundExecutor(1, "encrypt");
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
@ -2768,7 +2771,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
} else
|
||||
Log.unexpectedError(getParentFragmentManager(), ex);
|
||||
}
|
||||
}.execute(this, args, "compose:pgp");
|
||||
}.setExecutor(executor).execute(this, args, "compose:pgp");
|
||||
}
|
||||
|
||||
private void onSmime(Bundle args, final int action, final Bundle extras) {
|
||||
|
@ -3128,7 +3131,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
Log.unexpectedError(getParentFragmentManager(), ex, !expected);
|
||||
}
|
||||
}
|
||||
}.execute(this, args, "compose:s/mime");
|
||||
}.setExecutor(executor).execute(this, args, "compose:s/mime");
|
||||
}
|
||||
|
||||
private void onContactGroupSelected(Bundle args) {
|
||||
|
|
Loading…
Reference in a new issue