mirror of https://github.com/M66B/FairEmail.git
Cleanup
This commit is contained in:
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…
Reference in New Issue