mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Unified executor model
This commit is contained in:
@@ -37,10 +37,8 @@ import androidx.constraintlayout.widget.Group;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
public class ActivityAnswer extends ActivityBase {
|
||||
private static final ExecutorService executor = Helper.getBackgroundExecutor(1, "answer");
|
||||
|
||||
@Override
|
||||
@RequiresApi(api = Build.VERSION_CODES.M)
|
||||
@@ -71,7 +69,7 @@ public class ActivityAnswer extends ActivityBase {
|
||||
final Context context = adapterView.getContext();
|
||||
EntityAnswer answer = (EntityAnswer) adapterView.getAdapter().getItem(pos);
|
||||
|
||||
executor.submit(new Runnable() {
|
||||
Helper.getParallelExecutor().submit(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user