mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 09:31:11 +01:00
Cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user