pull/160/head
M66B 5 years ago
parent 43c69af59a
commit 55c990f9f3

@ -128,17 +128,6 @@ public class Helper {
}
};
static ThreadFactory foregroundThreadFactory = new ThreadFactory() {
private final AtomicInteger threadId = new AtomicInteger();
@Override
public Thread newThread(@NonNull Runnable runnable) {
Thread thread = new Thread(runnable);
thread.setName("FairEmail_fg_" + threadId.getAndIncrement());
return thread;
}
};
private static final ExecutorService executor =
Executors.newSingleThreadExecutor(backgroundThreadFactory);

Loading…
Cancel
Save