This commit is contained in:
M66B 2019-08-09 20:06:41 +02:00
parent 43c69af59a
commit 55c990f9f3
1 changed files with 0 additions and 11 deletions

View File

@ -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);